From f95b86b0e7b14fd418cc58691e89bc6627657aa6 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 17 Jan 2003 11:51:12 -0500 Subject: ENH: Removing old release scripts and config files. --- Utilities/cmake-cygwin-package.sh | 155 -------------------------------- Utilities/cmake_release_config_aix | 15 ---- Utilities/cmake_release_config_darwin | 12 --- Utilities/cmake_release_config_hpux | 20 ----- Utilities/cmake_release_config_irix | 3 - Utilities/cmake_release_config_linux | 16 ---- Utilities/cmake_release_config_osf | 18 ---- Utilities/cmake_release_config_sun | 22 ----- Utilities/cmake_release_cygwin.sh | 114 ----------------------- Utilities/cmake_release_unix_build.sh | 47 ---------- Utilities/cmake_release_unix_config.sh | 92 ------------------- Utilities/cmake_release_unix_package.sh | 112 ----------------------- Utilities/cmake_release_version.sh | 7 -- 13 files changed, 633 deletions(-) delete mode 100755 Utilities/cmake-cygwin-package.sh delete mode 100644 Utilities/cmake_release_config_aix delete mode 100644 Utilities/cmake_release_config_darwin delete mode 100644 Utilities/cmake_release_config_hpux delete mode 100644 Utilities/cmake_release_config_irix delete mode 100644 Utilities/cmake_release_config_linux delete mode 100644 Utilities/cmake_release_config_osf delete mode 100644 Utilities/cmake_release_config_sun delete mode 100755 Utilities/cmake_release_cygwin.sh delete mode 100755 Utilities/cmake_release_unix_build.sh delete mode 100755 Utilities/cmake_release_unix_config.sh delete mode 100755 Utilities/cmake_release_unix_package.sh delete mode 100755 Utilities/cmake_release_version.sh diff --git a/Utilities/cmake-cygwin-package.sh b/Utilities/cmake-cygwin-package.sh deleted file mode 100755 index 23ff392..0000000 --- a/Utilities/cmake-cygwin-package.sh +++ /dev/null @@ -1,155 +0,0 @@ -#!/bin/sh - -TOP_DIR=`cd \`echo "$0" | sed -n '/\//{s/\/[^\/]*$//;p;}'\`;pwd` -SELF_NAME=`basename "$0" .sh` -PKG=`echo ${SELF_NAME} | sed -e 's/\-[^\-]*\-[^\-]*$//'` -VER=`echo ${SELF_NAME} | sed -e 's/^[^\-]*\-//' -e 's/\-[^\-]*$//'` -REL=`echo ${SELF_NAME} | sed -e 's/^[^\-]*\-[^\-]*\-//'` -FULLPKG=${PKG}-${VER}-${REL} - -SOURCE_DIR="${TOP_DIR}/${PKG}-${VER}" -BINARY_DIR=${SOURCE_DIR}/.build -INSTALL_DIR=${SOURCE_DIR}/.inst -SPKG_DIR=${SOURCE_DIR}/.sinst -SOURCE_PACKAGE="${TOP_DIR}/${FULLPKG}-src.tar.bz2" -SOURCE_TARBALL="${TOP_DIR}/${PKG}-${VER}.tar.bz2" -SOURCE_PATCH="${TOP_DIR}/${FULLPKG}.patch" -PREFIX="/usr" - -BINARY_PACKAGE="${TOP_DIR}/${FULLPKG}.tar.bz2" - -mkdirs() -{ - ( - mkdir -p "${BINARY_DIR}" "${INSTALL_DIR}" "${SPKG_DIR}" - ) -} - -prep() -{ - ( - cd ${TOP_DIR} && - tar xvjf "${SOURCE_TARBALL}" && - patch -p0 < "${SOURCE_PATCH}" && - mkdirs - ) -} - -conf() -{ - ( - cd ${BINARY_DIR} && - ${SOURCE_DIR}/configure --prefix=${PREFIX} - ) -} - -build() -{ - ( - cd ${BINARY_DIR} && - make - ) -} - -install() -{ - ( - cd ${BINARY_DIR} && - make install DESTDIR="${INSTALL_DIR}" && - mkdir -p ${INSTALL_DIR}${PREFIX}/doc/Cygwin && - mkdir -p ${INSTALL_DIR}${PREFIX}/doc/${PKG}-${VER} && - cp ${SOURCE_DIR}/CMake.pdf ${INSTALL_DIR}${PREFIX}/doc/${PKG}-${VER} && - cp ${SOURCE_DIR}/CMake.rtf ${INSTALL_DIR}${PREFIX}/doc/${PKG}-${VER} && - cp ${SOURCE_DIR}/Copyright.txt ${INSTALL_DIR}${PREFIX}/doc/${PKG}-${VER} && - cp ${SOURCE_DIR}/CYGWIN-PATCHES/cmake.README \ - ${INSTALL_DIR}${PREFIX}/doc/Cygwin/${FULLPKG}.README && - touch ${INSTALL_DIR}${PREFIX}/doc/${PKG}-${VER}/MANIFEST && - cd ${INSTALL_DIR} && - FILES=`/usr/bin/find .${PREFIX} -type f |sed 's/^\.\//\//'` && -( -cat >> ${INSTALL_DIR}${PREFIX}/doc/${PKG}-${VER}/MANIFEST </dev/null 2>&1 - /usr/bin/find . -name "*.exe" | xargs strip >/dev/null 2>&1 - true - ) -} - -clean() -{ - ( - cd ${BINARY_DIR} && - make clean - ) -} - -pkg() -{ - ( - cd ${INSTALL_DIR} && - tar cvjf "${BINARY_PACKAGE}" * - ) -} - -mkpatch() -{ - ( - cd ${SOURCE_DIR} && - tar xvjf "${SOURCE_TARBALL}" && - mv ${PKG}-${VER} ../${PKG}-${VER}-orig && - cd ${TOP_DIR} && - diff -urN -x '.build' -x '.inst' -x '.sinst' \ - "${PKG}-${VER}-orig" "${PKG}-${VER}" > "${SPKG_DIR}/${FULLPKG}.patch" ; - rm -rf "${TOP_DIR}/${PKG}-${VER}-orig" - ) -} - -spkg() -{ - ( - mkpatch && - cp ${SOURCE_TARBALL} ${SPKG_DIR} && - cp "$0" ${SPKG_DIR} && - cd ${SPKG_DIR} && - tar cvjf ${SOURCE_PACKAGE} * - ) -} - -finish() -{ - ( - rm -rf "${SOURCE_DIR}" - ) -} - -case $1 in - prep) prep ; STATUS=$? ;; - mkdirs) mkdirs ; STATUS=$? ;; - conf) conf ; STATUS=$? ;; - build) build ; STATUS=$? ;; - check) check ; STATUS=$? ;; - clean) clean ; STATUS=$? ;; - install) install ; STATUS=$? ;; - strip) strip ; STATUS=$? ;; - package) pkg ; STATUS=$? ;; - pkg) pkg ; STATUS=$? ;; - mkpatch) mkpatch ; STATUS=$? ;; - src-package) spkg ; STATUS=$? ;; - spkg) spkg ; STATUS=$? ;; - finish) finish ; STATUS=$? ;; - all) ( - prep && conf && build && install && strip && pkg && spkg && finish ; - STATUS=$? - ) ;; - *) echo "Error: bad arguments" ; exit 1 ;; -esac -exit ${STATUS} diff --git a/Utilities/cmake_release_config_aix b/Utilities/cmake_release_config_aix deleted file mode 100644 index f6e5fb1..0000000 --- a/Utilities/cmake_release_config_aix +++ /dev/null @@ -1,15 +0,0 @@ -PLATFORM="aix15" -CC="xlc" -CXX="xlC" - -# Write entries into the cache file before building cmake. -WriteCMakeCache() -{ -${CAT} > CMakeCache.txt < CMakeCache.txt < UserMakeRules.cmake < CMakeCache.txt < CMakeCache.txt < CMakeCache.txt < UserMakeRules.cmake < CMakeCache.txt < ${PKG}-${VER}/CYGWIN-PATCHES/cmake.README < - ------------------- - -Cygwin port maintained by: CMake Developers - -EOF -} - -WriteSetupHint() -{ -cat > ${PKG}-${VER}/CYGWIN-PATCHES/setup.hint < "${FULLPKG}.patch") - rm -rf ${PKG}-${VER} ${PKG}-${VER}-orig -} - -CygwinScript() -{ - cp ${SELF_DIR}/cmake-cygwin-package.sh ./${FULLPKG}.sh - chmod u+x ./${FULLPKG}.sh -} - -Package() -{ - ./${FULLPKG}.sh all -} - -SourceTarball && SourcePatch && CygwinScript && Package diff --git a/Utilities/cmake_release_unix_build.sh b/Utilities/cmake_release_unix_build.sh deleted file mode 100755 index a6c85ac..0000000 --- a/Utilities/cmake_release_unix_build.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/sh -# -# CMake UNIX Release Script. -# -# Run this in an empty directory. Your ~/.cvspass file should already -# have an entry for the CVSROOT used below. -# - -# Find our own script's location. -SELFPATH=`cd \`echo $0 | sed -n '/\//{s/\/[^\/]*$//;p;}'\`;pwd` - -# Read the configuration. -. ${SELFPATH}/cmake_release_unix_config.sh - -# Cleanup from possible previous run. -rm -rf ${LOG_DIR} ${BUILD_DIR} ${INSTALL_DIR} ${TARBALL_DIR} -mkdir -p ${LOG_DIR} ${BUILD_DIR} ${INSTALL_DIR} ${TARBALL_DIR} - -# Make sure the source is exported from CVS. -if test ! -d ${SOURCE_DIR} ; then - cd ${RELEASE_ROOT} - rm -rf CMake - echo "Exporing CMake from CVS..." - if ${CVS} -z3 -d ${CVSROOT} export -r ${RELEASE_TAG} \ - CMake > ${LOG_DIR}/cvs.log 2>&1 ; then : ; else - echo "Error, see ${LOG_DIR}/cvs.log" - exit 1 - fi - mv CMake CMake-$VERSION -fi - -# Build the release. -cd ${BUILD_DIR} -echo "Writing CMakeCache.txt..." -WriteCMakeCache - -echo "Running configure..." -if ${SOURCE_DIR}/configure --prefix=${PREFIX} > ${LOG_DIR}/configure.log 2>&1 ; then : ; else - echo "Error, see ${LOG_DIR}/configure.log" - exit 1 -fi - -echo "Running make..." -if ${MAKE} > ${LOG_DIR}/make.log 2>&1 ; then : ; else - echo "Error, see ${LOG_DIR}/make.log" - exit 1 -fi diff --git a/Utilities/cmake_release_unix_config.sh b/Utilities/cmake_release_unix_config.sh deleted file mode 100755 index 3ad9e6a..0000000 --- a/Utilities/cmake_release_unix_config.sh +++ /dev/null @@ -1,92 +0,0 @@ -#!/bin/sh -# -# CMake UNIX Release Configuration Script. -# -# This is sourced by the cmake_release_unix_build and -# cmake_release_unix_package to setup the configuration. -# - -# Check the command line arguments. -CONFIG_FILE=$1 -if test "x$1" = "x"; then - echo "Usage:" - echo " $0 " - echo "" - echo "Sample configuration file:" - echo " PLATFORM=\"x86-linux\"" - exit 1 -fi - -# Set some defaults here. They can be changed by the configuration -# file. -CVSROOT=":pserver:anonymous@www.cmake.org:/cvsroot/CMake" -CAT="cat" -COMPRESS="compress" -CREATE_SOURCE_TARBALL="no" -CVS="cvs" -FIND="find" -GZIP="gzip" -MAKE="make" -MKDIR="mkdir" -RELEASE_ROOT=`pwd` -STRIP="strip" -TAR="tar" -TOUCH="touch" -CC="gcc" -CXX="c++" -CFLAGS="" -CXXFLAGS="" -PREFIX="/usr/local" -INSTALL_SUBDIRS="bin share doc" -DOC_DIR="/doc/cmake" -# Functions can be replaced by configuration file. - -# Create extra files in the installation tree. This allows -# configurations to add documentation. -CreateExtraFiles() -{ - return 0 -} - -# Create a package file. This allows configurations to create -# packages for certain UNIX distributions. -CreatePackage() -{ - return 0 -} - -# Write entries into the cache file before building cmake. -WriteCMakeCache() -{ -${CAT} > CMakeCache.txt < ${LOG_DIR}/make_install.log 2>&1 ; then : ; else - echo "Error, see ${LOG_DIR}/make_install.log" - exit 1 -fi - -# Strip the executables. -echo "Stripping executables..." -if ${STRIP} ${INSTALL_DIR}${PREFIX}/bin/* \ - > ${LOG_DIR}/strip.log 2>&1 ; then : ; else - echo "Error, see ${LOG_DIR}/strip.log" - exit 1 -fi - -# Make the source tarball if requested. -if test "${CREATE_SOURCE_TARBALL}" = "yes" ; then - ( - cd ${RELEASE_ROOT} - TARBALL="${TARBALL_DIR}/${SOURCE_TARBALL_NAME}.tar" - echo "Creating ${SOURCE_TARBALL_NAME}.tar" - if ${TAR} cvf $TARBALL CMake-$VERSION \ - > ${LOG_DIR}/${SOURCE_TARBALL_NAME}.log 2>&1 ; then : ; else - echo "Error, see ${LOG_DIR}/${SOURCE_TARBALL_NAME}.log" - exit 1 - fi - if test "x${GZIP}" != "x" ; then - echo "Creating $TARBALL.gz" - ${GZIP} -c $TARBALL > $TARBALL.gz - fi - if test "x${COMPRESS}" != "x" ; then - echo "Creating $TARBALL.Z" - ${COMPRESS} $TARBALL - fi - ) -fi - -# Let the configuration file add some files. -cd ${BUILD_DIR} -CreateExtraFiles - -# Create the manifest file. -echo "Writing MANIFEST..." -${MKDIR} -p ${INSTALL_DIR}${PREFIX}${DOC_DIR} -${TOUCH} ${INSTALL_DIR}${PREFIX}${DOC_DIR}/MANIFEST -cd ${INSTALL_DIR}${PREFIX} -FILES=`${FIND} ${INSTALL_SUBDIRS} -type f |sed 's/^\.\///'` -${CAT} >> ${INSTALL_DIR}${PREFIX}${DOC_DIR}/MANIFEST < ${LOG_DIR}/${INTERNAL_NAME}.log 2>&1 ; then : ; else - echo "Error, see ${LOG_DIR}/${INTERNAL_NAME}.log" - exit 1 -fi - -echo "Writing README" -cd ${INSTALL_DIR} -${CAT} >> README < ${LOG_DIR}/CMake$VERSION-$PLATFORM.log 2>&1 ; then : ; else - "Error, see ${LOG_DIR}/CMake$VERSION-$PLATFORM.log" - exit 1 -fi - -if test "x${GZIP}" != "x" ; then - echo "Creating $TARBALL.gz" - ${GZIP} -c $TARBALL > $TARBALL.gz -fi - -if test "x${COMPRESS}" != "x" ; then - echo "Creating $TARBALL.Z" - ${COMPRESS} $TARBALL -fi diff --git a/Utilities/cmake_release_version.sh b/Utilities/cmake_release_version.sh deleted file mode 100755 index 29c8fe7..0000000 --- a/Utilities/cmake_release_version.sh +++ /dev/null @@ -1,7 +0,0 @@ -CURRENT_TAG="Release-1-6" -CURRENT_VERSION="1.6.beta2" -CURRENT_RELEASE="1" - -# Cygwin packages need previous version/release. -PREVIOUS_VERSION="1.4.7" -PREVIOUS_RELEASE="1" -- cgit v0.12