Fixed "make dist" target.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 02 Feb 2010 23:33:57 -0500
changeset 1042 dc9291957a5a
parent 1041 f7b7996e54f1
child 1044 c06cad5295c3
Fixed "make dist" target.
CMakeLists.txt
--- a/CMakeLists.txt	Tue Feb 02 23:22:49 2010 -0500
+++ b/CMakeLists.txt	Tue Feb 02 23:33:57 2010 -0500
@@ -521,10 +521,12 @@
 ENDIF(DOXYGEN_FOUND)
 
 IF(UNIX)
+    SET(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
     ADD_CUSTOM_TARGET(
         dist
-        ./extras/makedist.sh ${PHYSFS_VERSION}
-        COMMENT "Building source tarball..."
+        hg archive -t tgz "${PHYSFS_TARBALL}"
+        WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+        COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
     )
     ADD_CUSTOM_TARGET(
         uninstall