summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-22 00:33:19 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-22 20:08:41 +0100
commitf35a35cedffc0454e6e2f74ab7cf4905d2109678 (patch)
treef60d1d79ad85132d79b5a5fb6cc377d0e852a26b /crawl-ref/source/AppHdr.h
parent440636cfb2a1d1304c976677e7571c917023d65c (diff)
downloadcrawl-ref-f35a35cedffc0454e6e2f74ab7cf4905d2109678.tar.gz
crawl-ref-f35a35cedffc0454e6e2f74ab7cf4905d2109678.zip
Use tar on Unix for save files, zip is unlikely to be installed.
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h10
1 files changed, 5 insertions, 5 deletions
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.