]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Apparently sending the tar output to stdout rather than a file causes tar to
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 9 Aug 2004 17:01:25 +0000 (17:01 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Mon, 9 Aug 2004 17:01:25 +0000 (17:01 +0000)
pad with trailing NULs, which slightly upsets old versions of gzip (1.2.4,
not 1.3.x), which upsets some of our correspondents.
Use -f to send it to a file instead. (It's not transparently clear what
happens when you mix -f and -C; I've tested this with ixion's tar, 1.13.25.)

Also add option -o to generate POSIX tar files, as for halibut/Makefile;
apparently this shuts up a `trailing garbage' error from WinZip.

[originally from svn r4429]

mkunxarc.sh

index 78f4b360c368943ef9359ff6909692235cc376ae..a290795427ddb75035b89654cfebfdc108997ce7 100755 (executable)
@@ -43,5 +43,5 @@ if test "x$ver" != "x"; then
    md5sum `find . -name '*.[ch]' -print` > manifest;
    echo "$ver" > version.def)
 fi
-tar -C uxarc -chzf - $arcname > $arcname.tar.gz
+tar -C uxarc -chzof $arcname.tar.gz $arcname
 rm -rf uxarc