summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/AppHdr.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-11-25 14:31:57 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-11-25 15:56:09 +0100
commit9305aa6caa1ab5da2d0eaa7d720ac7140c97aebb (patch)
tree20d9789a58803f0136a491f4d9c32d9f22f4ba1f /crawl-ref/source/AppHdr.h
parent6b9d5a24d6d9fd9de2df4d2dd90294a0d8dfb7ad (diff)
downloadcrawl-ref-9305aa6caa1ab5da2d0eaa7d720ac7140c97aebb.tar.gz
crawl-ref-9305aa6caa1ab5da2d0eaa7d720ac7140c97aebb.zip
Rename SAVE_PACKAGE_TAR to USE_TAR/USE_ZIP to reduce confusion.
Diffstat (limited to 'crawl-ref/source/AppHdr.h')
-rw-r--r--crawl-ref/source/AppHdr.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/crawl-ref/source/AppHdr.h b/crawl-ref/source/AppHdr.h
index 6b7616c514..e2be883659 100644
--- a/crawl-ref/source/AppHdr.h
+++ b/crawl-ref/source/AppHdr.h
@@ -457,24 +457,24 @@
FIXME: replace system(3) with fork(2) and execve(2).
*/
- // The default behaviour is to compress with zip.
- // To use GNU tar instead, define SAVE_PACKAGE_TAR.
+ // The default behaviour is to compress with tar on Unices, zip on Windows/DOS.
// To avoid compression entirely, define SAVE_PACKAGE_NONE.
#ifndef SAVE_PACKAGE_NONE
- #ifdef SAVE_PACKAGE_TAR
+ #ifdef USE_TAR
// The --absolute-names switch is only there to suppress noise on stdout.
// All the paths are removed later by --transform.
#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"
+ #define UNPACK_SPECIFIC_FILE_CMD LOAD_UNPACKAGE_CMD " %s"
#else
+ #ifdef USE_ZIP
#define PACKAGE_SUFFIX ".zip"
#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"
+ #define UNPACK_SPECIFIC_FILE_CMD LOAD_UNPACKAGE_CMD " %s"
+ #endif
#endif
-
- // This is used to unpack a specific file from the archive.
- #define UNPACK_SPECIFIC_FILE_CMD LOAD_UNPACKAGE_CMD " %s"
#endif // SAVE_PACKAGE_NONE
// This defines the chmod permissions for score and bones files.