summaryrefslogtreecommitdiffstats
path: root/Utilities/Release/release_cmake.sh.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-11 20:07:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-11 20:07:42 (GMT)
commit221a169cb90adee5d4c74408f501ad282ecebc2c (patch)
treea79b9dbf9e69fcfcff2cb60e59134a4f1f5f2b77 /Utilities/Release/release_cmake.sh.in
parentd3691460f54b79fb1929f084f5f784695ad2e6da (diff)
downloadCMake-221a169cb90adee5d4c74408f501ad282ecebc2c.zip
CMake-221a169cb90adee5d4c74408f501ad282ecebc2c.tar.gz
CMake-221a169cb90adee5d4c74408f501ad282ecebc2c.tar.bz2
ENH: working package creator
Diffstat (limited to 'Utilities/Release/release_cmake.sh.in')
-rwxr-xr-xUtilities/Release/release_cmake.sh.in22
1 files changed, 16 insertions, 6 deletions
diff --git a/Utilities/Release/release_cmake.sh.in b/Utilities/Release/release_cmake.sh.in
index b797ed7..f9ea95e 100755
--- a/Utilities/Release/release_cmake.sh.in
+++ b/Utilities/Release/release_cmake.sh.in
@@ -89,13 +89,23 @@ if [ -z "@SKIP_TESTS@" ]; then
check_exit_value $? "Test cmake" || exit 1
fi
-echo "Run package"
-./bin/cpack -D CMAKE_MAKE_PROGRAM=@MAKE_PROGRAM@
-check_exit_value $? "Package cmake" || exit 1
+# loop over binary generators
+generators="@CPACK_BINARY_GENERATORS@"
+for GEN in $generators; do
+ echo "Create $GEN package"
+ ./bin/cpack -D CMAKE_MAKE_PROGRAM=@MAKE_PROGRAM@ -G $GEN
+ check_exit_value $? "Create $GEN package" || exit 1
+done
+
+# loop over source generators
+generators="@CPACK_SOURCE_GENERATORS@"
+for GEN in $generators; do
+ echo "Create $GEN package"
+ ./bin/cpack -D CMAKE_MAKE_PROGRAM=@MAKE_PROGRAM@ -G $GEN --config CPackSourceConfig.cmake
+ check_exit_value $? "Create $GEN package" || exit 1
+done
+
-echo "Create Tar.gz"
-./bin/cpack -D CMAKE_MAKE_PROGRAM=@MAKE_PROGRAM@ -G TGZ
-check_exit_value $? "Create TGZ" || exit 1
# need to add an extra copy thing here
if [ ! -z "@EXTRA_COPY@" ]; then