diff options
author | Brad King <brad.king@kitware.com> | 2002-08-28 13:07:40 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2002-08-28 13:07:40 (GMT) |
commit | 17ae77ff23289374be842af6f4e6376012cadd8f (patch) | |
tree | 14406a3c04c405cc02174fd186c1dec375c3a51d /Utilities | |
parent | 92cb867aa541fc0a096499243c0d2b5df6cf5f15 (diff) | |
download | CMake-17ae77ff23289374be842af6f4e6376012cadd8f.zip CMake-17ae77ff23289374be842af6f4e6376012cadd8f.tar.gz CMake-17ae77ff23289374be842af6f4e6376012cadd8f.tar.bz2 |
BUG: Don't erase tarball directory in packaging step in case there is a source tarball there.
Diffstat (limited to 'Utilities')
-rwxr-xr-x | Utilities/cmake_release_unix_package.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Utilities/cmake_release_unix_package.sh b/Utilities/cmake_release_unix_package.sh index 9b8396e..3fa7e53 100755 --- a/Utilities/cmake_release_unix_package.sh +++ b/Utilities/cmake_release_unix_package.sh @@ -12,8 +12,8 @@ SELFPATH=`cd \`echo $0 | sed -n '/\//{s/\/[^\/]*$//;p;}'\`;pwd` . ${SELFPATH}/cmake_release_unix_config.sh # Cleanup from possible previous run. -rm -rf ${INSTALL_DIR} ${TARBALL_DIR} -mkdir -p ${INSTALL_DIR} ${TARBALL_DIR} +rm -rf ${INSTALL_DIR} +mkdir -p ${INSTALL_DIR} # Run the installation. cd ${BUILD_DIR} @@ -70,6 +70,7 @@ ${FILES} EOF TARBALL="${TARBALL_DIR}/CMake$VERSION-$PLATFORM.tar" +[ -e $TARBALL ] && rm -rf $TARBALL echo "Creating CMake$VERSION-$PLATFORM.tar" if ${TAR} cvf $TARBALL README ${INTERNAL_NAME}.tar \ > ${LOG_DIR}/CMake$VERSION-$PLATFORM.log 2>&1 ; then : ; else @@ -79,10 +80,12 @@ fi if test "x${GZIP}" != "x" ; then echo "Creating $TARBALL.gz" + [ -e $TARBALL.gz ] && rm -rf $TARBALL.gz ${GZIP} -c $TARBALL > $TARBALL.gz fi if test "x${COMPRESS}" != "x" ; then echo "Creating $TARBALL.Z" + [ -e $TARBALL.Z ] && rm -rf $TARBALL.Z ${COMPRESS} $TARBALL fi |