From f35a35cedffc0454e6e2f74ab7cf4905d2109678 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Sun, 22 Nov 2009 00:33:19 +0100 Subject: Use tar on Unix for save files, zip is unlikely to be installed. --- crawl-ref/source/AppHdr.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/AppHdr.h') diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h index b5beaba40f..4dbba56e21 100644 --- a/crawl-ref/source/AppHdr.h +++ b/crawl-ref/source/AppHdr.h @@ -474,13 +474,13 @@ #ifdef SAVE_PACKAGE_TAR // The --absolute-names switch is only there to suppress noise on stdout. // All the paths are removed later by --transform. - #define PACKAGE_SUFFIX ".tgz" - #define SAVE_PACKAGE_CMD "tar -zcf %s.tgz --remove-files --absolute-names --transform=s:.*/:: %s.*" - #define LOAD_UNPACKAGE_CMD "tar -zxf %s.tgz -C %s" + #define PACKAGE_SUFFIX ".tar.gz" + #define SAVE_PACKAGE_CMD "tar -zcf %s"PACKAGE_SUFFIX" --remove-files --absolute-names --transform=s:.*/:: %s.*" + #define LOAD_UNPACKAGE_CMD "tar -zxf %s"PACKAGE_SUFFIX" -C %s" #else #define PACKAGE_SUFFIX ".zip" - #define SAVE_PACKAGE_CMD "/usr/bin/zip -m -q -j -1 %s.zip %s.*" - #define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s.zip -d %s" + #define SAVE_PACKAGE_CMD "/usr/bin/zip -m -q -j -1 %s"PACKAGE_SUFFIX" %s.*" + #define LOAD_UNPACKAGE_CMD "/usr/bin/unzip -q -o %s"PACKAGE_SUFFIX" -d %s" #endif // This is used to unpack a specific file from the archive. -- cgit v1.2.3-54-g00ecf