Use .tar.bz2 for "make dist" instead of .tar.gz stable-2.0 release-2.0.3
authorRyan C. Gordon <icculus@icculus.org>
Mon, 22 Oct 2012 23:40:52 -0400
branchstable-2.0
changeset 1306 bf155bd2127b
parent 1305 3bce0185dd28
child 1307 f94eec5e9054
Use .tar.bz2 for "make dist" instead of .tar.gz

Mercurial's tgz archiver is writing the full output path into the archive,
causing things like 7-zip to uncompress it to
"Users/icculus/projects/physfs-2.0.2.tar" instead of just "physfs-2.0.2.tar".

It seems reasonable to believe everyone has .tar.bz2 support by now anyhow.
CMakeLists.txt
--- a/CMakeLists.txt	Mon Oct 22 23:32:52 2012 -0400
+++ b/CMakeLists.txt	Mon Oct 22 23:40:52 2012 -0400
@@ -368,10 +368,10 @@
 ENDIF(DOXYGEN_FOUND)
 
 IF(UNIX)
-    SET(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
+    SET(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.bz2")
     ADD_CUSTOM_TARGET(
         dist
-        hg archive -t tgz "${PHYSFS_TARBALL}"
+        hg archive -t tbz2 "${PHYSFS_TARBALL}"
         WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
         COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
     )