Apparently sending the tar output to stdout rather than a file causes tar to
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Mon, 9 Aug 2004 17:01:25 +0000 (17:01 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
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.

git-svn-id: svn://svn.tartarus.org/sgt/putty@4429 cda61777-01e9-0310-a592-d414129be87e

mkunxarc.sh

index 78f4b36..a290795 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