From 7ee50e7ee5f5ebef9bf3ae6a32f699e183061438 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 23 Sep 2002 08:51:16 -0400 Subject: [PATCH] BUG: Creating source tarball should not affect current directory. --- Utilities/cmake_release_unix_package.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Utilities/cmake_release_unix_package.sh b/Utilities/cmake_release_unix_package.sh index 832cc3c39..71ac20509 100755 --- a/Utilities/cmake_release_unix_package.sh +++ b/Utilities/cmake_release_unix_package.sh @@ -33,6 +33,8 @@ 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 \ @@ -48,9 +50,11 @@ if test "${CREATE_SOURCE_TARBALL}" = "yes" ; then echo "Creating $TARBALL.Z" ${COMPRESS} $TARBALL fi + ) fi # Let the configuration file add some files. +cd ${BUILD_DIR} CreateExtraFiles # Create the manifest file.