From f9064ee91ad837645e04ac4d396c3f202d7a4a2d Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 27 Aug 2003 16:08:11 -0400 Subject: Merging release script changes from 1.8 branch to main tree. --- Utilities/Release/cmake_release.sh | 88 +++++++++++++++++++++++----------- Utilities/Release/config_AIX | 5 +- Utilities/Release/config_Darwin | 8 ++-- Utilities/Release/config_HP-UX | 7 ++- Utilities/Release/config_IRIX64 | 23 ++++++--- Utilities/Release/config_Linux | 9 ++-- Utilities/Release/config_OSF1 | 6 +-- Utilities/Release/config_SunOS | 7 ++- Utilities/Release/cygwin-package.sh.in | 2 +- 9 files changed, 98 insertions(+), 57 deletions(-) diff --git a/Utilities/Release/cmake_release.sh b/Utilities/Release/cmake_release.sh index a58423b..d148ac4 100755 --- a/Utilities/Release/cmake_release.sh +++ b/Utilities/Release/cmake_release.sh @@ -23,7 +23,7 @@ # # Release version number. -TAG="Release-1-8-0" +TAG="Release-1-8" CMAKE_VERSION="1.8" VERSION="${CMAKE_VERSION}.0" RELEASE="1" @@ -37,6 +37,7 @@ CVSROOT_GREP=":pserver:anonymous@www.cmake.org:[0-9]*/cvsroot/CMake" # CMake release root directory. RELEASE_ROOT_NAME="CMakeReleaseRoot" RELEASE_ROOT="${HOME}/${RELEASE_ROOT_NAME}" +INSTALL_DIR="Install" # Installation prefix used during tarball creation. Tarballs are # relative to the installation prefix and do not include this in their @@ -52,8 +53,10 @@ CXX="" CFLAGS="" CXXFLAGS="" -# Provide a default make. -MAKE=make +# Provide a default make and build flags. +MAKE="make" +BUILD_FLAGS="" +BOOTSTRAP_FLAGS="" # Details of remote invocation. [ -z "$REMOTE" ] && SELF="$0" @@ -294,12 +297,12 @@ config() utilities || return 1 CONFIG_FILE="config_`uname`" echo "Loading ${CONFIG_FILE} ..." - . ${RELEASE_ROOT}/ReleaseUtilities/${CONFIG_FILE} >Logs/config.log 2>&1 || error_log Logs/config.log + . "${RELEASE_ROOT}/ReleaseUtilities/${CONFIG_FILE}" >Logs/config.log 2>&1 || error_log Logs/config.log if [ -z "${CC}" ] || [ -z "${CXX}" ] || [ -z "${PLATFORM}" ]; then echo "${CONFIG_FILE} should specify CC, CXX, and PLATFORM." && return 1 fi - export CC CXX CFLAGS CXXFLAGS PATH LD_LIBRARY_PATH + export CC CXX CFLAGS CXXFLAGS LDFLAGS PATH LD_LIBRARY_PATH MAKE } #----------------------------------------------------------------------------- @@ -343,8 +346,39 @@ source_tarball() #----------------------------------------------------------------------------- write_cache() { + write_standard_cache +} + +#----------------------------------------------------------------------------- +write_standard_cache() +{ cat > CMakeCache.txt <Logs/configure.log 2>&1 || error_log Logs/configure.log } @@ -387,7 +421,7 @@ build() echo "Running make ..." && ( cd "cmake-${VERSION}-${PLATFORM}" && - ${MAKE} + ${MAKE} ${BUILD_FLAGS} ) >Logs/build.log 2>&1 || error_log Logs/build.log } @@ -396,7 +430,7 @@ tests() { [ -z "${DONE_tests}" ] || return 0 ; DONE_tests="yes" config || return 1 - [ -f "cmake-${VERSION}-${PLATFORM}/Source/ccmake" ] || build || return 1 + [ -f "cmake-${VERSION}-${PLATFORM}/bin/ccmake" ] || build || return 1 echo "Running tests ..." && ( cd "cmake-${VERSION}-${PLATFORM}" && @@ -413,9 +447,9 @@ install() [ -d "cmake-${VERSION}-${PLATFORM}/Tests/Simple" ] || tests || return 1 echo "Running make install ..." && ( - rm -rf Install && + rm -rf ${INSTALL_DIR} && cd "cmake-${VERSION}-${PLATFORM}" && - ${MAKE} install DESTDIR="${RELEASE_ROOT}/Install" + ${MAKE} install DESTDIR="${RELEASE_ROOT}/${INSTALL_DIR}" ) >Logs/install.log 2>&1 || error_log Logs/install.log } @@ -424,10 +458,10 @@ strip() { [ -z "${DONE_strip}" ] || return 0 ; DONE_strip="yes" config || return 1 - [ -f "Install/usr/local/bin/ccmake" ] || install || return 1 + [ -f "${INSTALL_DIR}/usr/local/bin/ccmake" ] || install || return 1 echo "Stripping executables ..." && ( - strip Install${PREFIX}/bin/* + strip ${INSTALL_DIR}${PREFIX}/bin/* ) >Logs/strip.log 2>&1 || error_log Logs/strip.log } @@ -436,21 +470,21 @@ manifest() { [ -z "${DONE_manifest}" ] || return 0 ; DONE_manifest="yes" config || return 1 - [ -f "Install/usr/local/bin/ccmake" ] || install || return 1 + [ -f "${INSTALL_DIR}/usr/local/bin/ccmake" ] || install || return 1 echo "Writing MANIFEST ..." && ( - mkdir -p Install${PREFIX}${DOC_DIR} && - rm -rf Install${PREFIX}${DOC_DIR}/MANIFEST && - touch Install${PREFIX}${DOC_DIR}/MANIFEST && - cd Install${PREFIX} && + mkdir -p ${INSTALL_DIR}${PREFIX}${DOC_DIR} && + rm -rf ${INSTALL_DIR}${PREFIX}${DOC_DIR}/MANIFEST && + touch ${INSTALL_DIR}${PREFIX}${DOC_DIR}/MANIFEST && + cd ${INSTALL_DIR}${PREFIX} && FILES=`find . -type f |sed 's/^\.\///'` && cd ${RELEASE_ROOT} && - (cat >> Install${PREFIX}${DOC_DIR}/MANIFEST <> ${INSTALL_DIR}${PREFIX}${DOC_DIR}/MANIFEST < Install/README < ${INSTALL_DIR}/README < OSX/Package_Root/Applications/CMake.app/Contents/PkgInfo && cp "${WX_RESOURCES}" OSX/Package_Root/Applications/CMake.app/Contents/Resources/wxCMakeSetup.rsrc ) >Logs/osx_install.log 2>&1 || error_log Logs/osx_install.log diff --git a/Utilities/Release/config_AIX b/Utilities/Release/config_AIX index 792370f..0ea8acc 100644 --- a/Utilities/Release/config_AIX +++ b/Utilities/Release/config_AIX @@ -5,8 +5,5 @@ CXX="xlC" # Write entries into the cache file before building cmake. write_cache() { -cat > CMakeCache.txt < CMakeCache.txt <> CMakeCache.txt < CMakeCache.txt <> CMakeCache.txt < CMakeCache.txt < CMakeCache.txt <> CMakeCache.txt < CMakeCache.txt <> CMakeCache.txt < UserMakeRules.cmake < CMakeCache.txt <> CMakeCache.txt <