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:
parent
ef77bb40ba
commit
712c7d8c66
|
@ -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}'..."
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue