Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
icculus committed Oct 23, 2012
1 parent ef77bb4 commit 712c7d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -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}'..."
)
Expand Down

0 comments on commit 712c7d8

Please sign in to comment.