diff options
author | Brad King <brad.king@kitware.com> | 2003-01-17 18:35:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-01-17 18:35:04 (GMT) |
commit | 9c00464f4d76c2bdbf78d61db05e3ca091c24a98 (patch) | |
tree | df60e8777916a371aa105c198c8459d22edcc114 | |
parent | dd5c20536f5f9d0e14f1df83c03c58239aff2e29 (diff) | |
download | CMake-9c00464f4d76c2bdbf78d61db05e3ca091c24a98.zip CMake-9c00464f4d76c2bdbf78d61db05e3ca091c24a98.tar.gz CMake-9c00464f4d76c2bdbf78d61db05e3ca091c24a98.tar.bz2 |
ENH: Cygwin package is now created in a Cygwin subdirectory.
-rwxr-xr-x | Utilities/Release/cmake_release.sh | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/Utilities/Release/cmake_release.sh b/Utilities/Release/cmake_release.sh index 0af5833..609e943 100755 --- a/Utilities/Release/cmake_release.sh +++ b/Utilities/Release/cmake_release.sh @@ -377,8 +377,9 @@ cygwin_source_tarball() [ -d "cmake-${VERSION}" ] || checkout || return 1 echo "Creating cygwin source tarball ..." && ( - rm -rf cmake-${VERSION}.tar.bz2 && - tar cvjf cmake-${VERSION}.tar.bz2 cmake-${VERSION} + mkdir -p Cygwin && + rm -rf Cygwin/cmake-${VERSION}.tar.bz2 && + tar cvjf Cygwin/cmake-${VERSION}.tar.bz2 cmake-${VERSION} ) >Logs/cygwin_source_tarball.log 2>&1 || error_log Logs/cygwin_source_tarball.log } @@ -390,10 +391,11 @@ cygwin_source_patch() [ -d "cmake-${VERSION}" ] || checkout || return 1 echo "Creating source patch for cygwin ..." && ( - rm -rf Patched && - mkdir -p Patched && - (tar c cmake-${VERSION} | (cd Patched; tar x)) && - cd Patched && + mkdir -p Cygwin && + rm -rf Cygwin/Patched && + mkdir -p Cygwin/Patched && + (tar c cmake-${VERSION} | (cd Cygwin/Patched; tar x)) && + cd Cygwin/Patched && mkdir -p cmake-${VERSION}/CYGWIN-PATCHES && ( CYGVERSION=`uname -r` @@ -451,7 +453,7 @@ EOF ) && dos2unix cmake-${VERSION}/CYGWIN-PATCHES/setup.hint && cp cmake-${VERSION}/CYGWIN-PATCHES/setup.hint ../setup.hint && - (diff -urN "../cmake-${VERSION}" "cmake-${VERSION}" > "../cmake-${VERSION}-${RELEASE}.patch"; [ "$?" = "1" ]) + (diff -urN "../../cmake-${VERSION}" "cmake-${VERSION}" > "../cmake-${VERSION}-${RELEASE}.patch"; [ "$?" = "1" ]) ) >Logs/cygwin_source_patch.log 2>&1 || error_log Logs/cygwin_source_patch.log } @@ -462,8 +464,9 @@ cygwin_package_script() utilities || return 1 echo "Creating cygwin packaging script ..." && ( - cp ReleaseUtilities/cygwin-package.sh.in cmake-${VERSION}-${RELEASE}.sh && - chmod u+x cmake-${VERSION}-${RELEASE}.sh + mkdir -p Cygwin && + cp ReleaseUtilities/cygwin-package.sh.in Cygwin/cmake-${VERSION}-${RELEASE}.sh && + chmod u+x Cygwin/cmake-${VERSION}-${RELEASE}.sh ) >Logs/cygwin_package_script.log 2>&1 || error_log Logs/cygwin_package_script.log } @@ -472,14 +475,14 @@ cygwin_package() { [ -z "${DONE_cygwin_package}" ] || return 0 ; DONE_cygwin_package="yes" config || return 1 - [ -f "cmake-${VERSION}.tar.bz2" ] || cygwin_source_tarball || return 1 - [ -f "cmake-${VERSION}-${RELEASE}.patch" ] || cygwin_source_patch || return 1 - [ -f "cmake-${VERSION}-${RELEASE}.sh" ] || cygwin_package_script || return 1 + [ -f "Cygwin/cmake-${VERSION}.tar.bz2" ] || cygwin_source_tarball || return 1 + [ -f "Cygwin/cmake-${VERSION}-${RELEASE}.patch" ] || cygwin_source_patch || return 1 + [ -f "Cygwin/cmake-${VERSION}-${RELEASE}.sh" ] || cygwin_package_script || return 1 echo "Running cygwin packaging script ..." && ( - rm -rf Package && - mkdir -p Package && - cd Package && + rm -rf Cygwin/Package && + mkdir -p Cygwin/Package && + cd Cygwin/Package && cp ../setup.hint . && cp ../cmake-${VERSION}.tar.bz2 . && cp ../cmake-${VERSION}-${RELEASE}.patch . && |