Merged 1042:dc9291957a5a from default branch: make dist fix. stable-2.0
authorRyan C. Gordon <icculus@icculus.org>
Tue, 02 Feb 2010 23:40:17 -0500
branchstable-2.0
changeset 1043 44865546c38b
parent 1028 69a19ed65049
child 1046 c266bc57acc1
Merged 1042:dc9291957a5a from default branch: make dist fix.
CMakeLists.txt
--- a/CMakeLists.txt	Mon Feb 01 03:02:18 2010 -0500
+++ b/CMakeLists.txt	Tue Feb 02 23:40:17 2010 -0500
@@ -346,7 +346,13 @@
 ENDIF(DOXYGEN_FOUND)
 
 IF(UNIX)
-    ADD_CUSTOM_TARGET(dist ./extras/makedist.sh ${PHYSFS_VERSION} COMMENT "Building source tarball")
+    SET(PHYSFS_TARBALL "${CMAKE_CURRENT_SOURCE_DIR}/../physfs-${PHYSFS_VERSION}.tar.gz")
+    ADD_CUSTOM_TARGET(
+        dist
+        hg archive -t tgz "${PHYSFS_TARBALL}"
+        WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
+        COMMENT "Building source tarball '${PHYSFS_TARBALL}'..."
+    )
 ENDIF(UNIX)
 
 MACRO(MESSAGE_BOOL_OPTION _NAME _VALUE)