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.
This commit is contained in:
Ryan C. Gordon 2012-10-22 23:40:52 -04:00
parent ef77bb40ba
commit 712c7d8c66
1 changed files with 2 additions and 2 deletions

View File

@ -368,10 +368,10 @@ ELSE(DOXYGEN_FOUND)
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}'..."
)