diff options
author | Brad King <brad.king@kitware.com> | 2003-01-16 00:02:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-01-16 00:02:08 (GMT) |
commit | adf6ac61e8ee696787448244e7f0cdd0ee08336e (patch) | |
tree | 26eaab07441dfa90a02d4a8e2736388304332114 /Utilities | |
parent | 1df3c50f280ae902e5edee7843bd40156bb17d81 (diff) | |
download | CMake-adf6ac61e8ee696787448244e7f0cdd0ee08336e.zip CMake-adf6ac61e8ee696787448244e7f0cdd0ee08336e.tar.gz CMake-adf6ac61e8ee696787448244e7f0cdd0ee08336e.tar.bz2 |
ENH: Cleaned up remote invocation.
Diffstat (limited to 'Utilities')
-rwxr-xr-x | Utilities/Release/cmake_release.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Utilities/Release/cmake_release.sh b/Utilities/Release/cmake_release.sh index d70ab0a..ba2fe16 100755 --- a/Utilities/Release/cmake_release.sh +++ b/Utilities/Release/cmake_release.sh @@ -20,7 +20,7 @@ # CMake UNIX Release Script. # -SELF="$0" +[ -z "$REMOTE" ] && SELF="$0" CVSROOT=":pserver:anonymous@www.cmake.org:/cvsroot/CMake" CVSROOT_GREP=":pserver:anonymous@www.cmake.org:[0-9]*/cvsroot/CMake" TAG="Release-1-6" @@ -58,7 +58,9 @@ remote() shift REMOTE_TASK="$@" echo "------- Running remote task on $HOST. -------" - (echo "TASK=\"${REMOTE_TASK}\"" && cat $SELF) | ssh "$HOST" /bin/sh 2>/dev/null + (echo "REMOTE=\"1\"" && + echo "TASK=\"${REMOTE_TASK}\"" && + cat $SELF) | ssh "$HOST" /bin/sh 2>/dev/null echo "-------- Remote task on $HOST done. --------" } @@ -207,6 +209,7 @@ configure() echo "Running configure ..." && ( cd "cmake-${VERSION}-${PLATFORM}" && + export CC CXX CFLAGS CXXFLAGS && ../cmake-${VERSION}/configure --prefix=${PREFIX} ) >Logs/configure.log 2>&1 || error_log Logs/configure.log } @@ -314,7 +317,7 @@ package() } if [ -z "$TASK" ]; then - TASK="$@" + [ -z "$REMOTE" ] && TASK="$@" fi if [ -z "$TASK" ]; then |