summaryrefslogtreecommitdiffstats
path: root/Utilities/cmake_release_unix_package.sh
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-09-23 12:51:16 (GMT)
committerBrad King <brad.king@kitware.com>2002-09-23 12:51:16 (GMT)
commit7ee50e7ee5f5ebef9bf3ae6a32f699e183061438 (patch)
treef0d6768562f82cb0757f1e05bea57d072e4989dd /Utilities/cmake_release_unix_package.sh
parent9ac4d6e83a57d1823eb788f5dd7767610bb99368 (diff)
downloadCMake-7ee50e7ee5f5ebef9bf3ae6a32f699e183061438.zip
CMake-7ee50e7ee5f5ebef9bf3ae6a32f699e183061438.tar.gz
CMake-7ee50e7ee5f5ebef9bf3ae6a32f699e183061438.tar.bz2
BUG: Creating source tarball should not affect current directory.
Diffstat (limited to 'Utilities/cmake_release_unix_package.sh')
-rwxr-xr-xUtilities/cmake_release_unix_package.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utilities/cmake_release_unix_package.sh b/Utilities/cmake_release_unix_package.sh
index 832cc3c..71ac205 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.