From 712c7d8c667fdd284e3410c6eb0b6536d97d7352 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 22 Oct 2012 23:40:52 -0400 Subject: [PATCH] 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e48fc6c9..0dc67322 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}'..." )