summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-07-15 14:48:27 (GMT)
committerBrad King <brad.king@kitware.com>2002-07-15 14:48:27 (GMT)
commit1cc729ba295058d6da4b7b050b79e9767a0202fc (patch)
tree41635782637334b7d4973d64acb7a208301d96e2 /Utilities
parent272c367dd480ec909e77295f082458f0ceea0b76 (diff)
downloadCMake-1cc729ba295058d6da4b7b050b79e9767a0202fc.zip
CMake-1cc729ba295058d6da4b7b050b79e9767a0202fc.tar.gz
CMake-1cc729ba295058d6da4b7b050b79e9767a0202fc.tar.bz2
ENH: Made release script more generic for creating static and shared releases.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmake_release_config_linux12
-rwxr-xr-xUtilities/cmake_release_unix.sh28
2 files changed, 22 insertions, 18 deletions
diff --git a/Utilities/cmake_release_config_linux b/Utilities/cmake_release_config_linux
index 8c6af7c..4fca09d 100644
--- a/Utilities/cmake_release_config_linux
+++ b/Utilities/cmake_release_config_linux
@@ -1,5 +1,15 @@
RELEASE_TAG="Release-1-4"
VERSION="1.4"
-PLATFORM="x86-linux"
+PLATFORM="x86-linux-static"
CREATE_SOURCE_TARBALL="yes"
+CURSES_LIBRARY="/usr/lib/libcurses.a"
+FORM_LIBRARY="/usr/lib/libform.a"
+
+CMAKE_CACHE_ENTRIES="
+CMAKE_CXX_SHLIB_LINK_FLAGS:STRING=-static
+CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=
+CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING=
+CURSES_LIBRARY:FILEPATH=${CURSES_LIBRARY}
+FORM_LIBRARY:FILEPATH=${FORM_LIBRARY}
+"
diff --git a/Utilities/cmake_release_unix.sh b/Utilities/cmake_release_unix.sh
index 71c5683..51cbcb6 100755
--- a/Utilities/cmake_release_unix.sh
+++ b/Utilities/cmake_release_unix.sh
@@ -22,9 +22,6 @@ fi
# Set some defaults here. They can be changed by the configuration
# file.
CVSROOT=":pserver:anonymous@www.cmake.org:/cvsroot/CMake"
-CURSES_LIBRARY="/usr/lib/libcurses.a"
-FORM_LIBRARY="/usr/lib/libform.a"
-STATIC_LINK_FLAGS="-static"
RELEASE_ROOT=`pwd`
CREATE_SOURCE_TARBALL="no"
CMAKE="cmake"
@@ -39,6 +36,7 @@ CC="gcc"
CXX="c++"
CFLAGS=""
CXXFLAGS=""
+CMAKE_CACHE_ENTRIES=""
#-----------------------------------------------------------------------------
# Configuration options (could be in separate file)
@@ -54,7 +52,7 @@ export CC CXX CFLAGS CXXFLAGS
# Select directories.
INSTALL_DIR="${RELEASE_ROOT}/Install"
TARBALL_DIR="${RELEASE_ROOT}/Tarballs"
-BUILD_DIR="${RELEASE_ROOT}/CMake-$VERSION-static"
+BUILD_DIR="${RELEASE_ROOT}/CMake-$VERSION-$PLATFORM-build"
LOG_DIR="${RELEASE_ROOT}/Logs"
# Cleanup from possible previous run.
@@ -97,14 +95,10 @@ fi
# Build the release.
cd ${BUILD_DIR}
echo "Writing CMakeCache.txt..."
-${CAT} >> CMakeCache.txt <<EOF
+${CAT} > CMakeCache.txt <<EOF
BUILD_TESTING:BOOL=OFF
-CMAKE_CXX_SHLIB_LINK_FLAGS:STRING=${STATIC_LINK_FLAGS}
-CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=
-CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING=
CMAKE_INSTALL_PREFIX:PATH=${INSTALL_DIR}
-CURSES_LIBRARY:FILEPATH=${CURSES_LIBRARY}
-FORM_LIBRARY:FILEPATH=${FORM_LIBRARY}
+${CMAKE_CACHE_ENTRIES}
EOF
echo "Running CMake..."
@@ -138,20 +132,20 @@ fi
echo "Writing README"
FILES=`${FIND} bin share -type f |sed 's/^\.\///'`
${CAT} >> README <<EOF
-CMake $VERSION binary for $PLATFORM - statically linked
+CMake $VERSION binary for $PLATFORM
-Extract the file "cmake-$VERSION-$PLATFORM.tar" into your destination directory.
-The following files will be extracted:
+Extract the file "cmake-$VERSION-$PLATFORM.tar" into your
+destination directory. The following files will be extracted:
${FILES}
EOF
-TARBALL="${TARBALL_DIR}/CMake$VERSION-$PLATFORM-static.tar"
-echo "Creating CMake$VERSION-$PLATFORM-static.tar"
+TARBALL="${TARBALL_DIR}/CMake$VERSION-$PLATFORM.tar"
+echo "Creating CMake$VERSION-$PLATFORM.tar"
if ${TAR} cvf $TARBALL README cmake-$VERSION-$PLATFORM.tar \
- > ${LOG_DIR}/CMake$VERSION-$PLATFORM-static.log 2>&1 ; then : ; else
- "Error, see ${LOG_DIR}/CMake$VERSION-$PLATFORM-static.log"
+ > ${LOG_DIR}/CMake$VERSION-$PLATFORM.log 2>&1 ; then : ; else
+ "Error, see ${LOG_DIR}/CMake$VERSION-$PLATFORM.log"
exit 1
fi