You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Joe Orton <jo...@redhat.com> on 2000/10/11 14:57:27 UTC
[PATCH] binbuild.sh fix
The 'tar' command on Tru64 5.0 seems to be broken, and if you do:
tar -cf ../foo.tar -C .. etc
it does the chdir("..") *before* opening ../foo.tar, creating
../../foo.tar instead.
This breaks binbuild.sh, since it can't find the .tar file it creates.
Index: binbuild.sh
===================================================================
RCS file: /home/cvspublic/apache-1.3/src/helpers/binbuild.sh,v
retrieving revision 1.16
diff -u -r1.16 binbuild.sh
--- binbuild.sh 2000/01/30 00:36:55 1.16
+++ binbuild.sh 2000/10/11 10:02:54
@@ -273,7 +273,7 @@
then
case "x$OS" in
x*390*) $TAR -cfU ../apache_$VER-$OS.tar -C .. apache_$VER;;
- *) $TAR -cf ../apache_$VER-$OS.tar -C .. apache_$VER;;
+ *) (cd .. && $TAR -cf apache_$VER-$OS.tar apache_$VER);;
esac
if [ "x$GZIP" != "x" ]
then
--
Joe Orton, Red Hat Europe
Re: [PATCH] binbuild.sh fix
Posted by Eli Marmor <ma...@elmar.co.il>.
Or just use "`pwd`/../" instead of "../"?
(I think $APDIR is OK too).
Joe Orton wrote:
> The 'tar' command on Tru64 5.0 seems to be broken, and if you do:
>
> tar -cf ../foo.tar -C .. etc
>
> it does the chdir("..") *before* opening ../foo.tar, creating
> ../../foo.tar instead.
>
> This breaks binbuild.sh, since it can't find the .tar file it creates.
>
> Index: binbuild.sh
> ===================================================================
> RCS file: /home/cvspublic/apache-1.3/src/helpers/binbuild.sh,v
> retrieving revision 1.16
> diff -u -r1.16 binbuild.sh
> --- binbuild.sh 2000/01/30 00:36:55 1.16
> +++ binbuild.sh 2000/10/11 10:02:54
> @@ -273,7 +273,7 @@
> then
> case "x$OS" in
> x*390*) $TAR -cfU ../apache_$VER-$OS.tar -C .. apache_$VER;;
> - *) $TAR -cf ../apache_$VER-$OS.tar -C .. apache_$VER;;
> + *) (cd .. && $TAR -cf apache_$VER-$OS.tar apache_$VER);;
> esac
> if [ "x$GZIP" != "x" ]
> then