r20476 - gnucash/branches/2.4/packaging/win32 - [20475] Windows build: fix weekly 2.4 build and move log files into separate directory
Geert Janssens
gjanssens at code.gnucash.org
Thu Mar 24 17:53:20 EDT 2011
Author: gjanssens
Date: 2011-03-24 17:53:20 -0400 (Thu, 24 Mar 2011)
New Revision: 20476
Trac: http://svn.gnucash.org/trac/changeset/20476
Modified:
gnucash/branches/2.4/packaging/win32/build_package.sh
gnucash/branches/2.4/packaging/win32/daily_build.bat
Log:
[20475] Windows build: fix weekly 2.4 build and move log files into separate directory
Modified: gnucash/branches/2.4/packaging/win32/build_package.sh
===================================================================
--- gnucash/branches/2.4/packaging/win32/build_package.sh 2011-03-24 21:50:01 UTC (rev 20475)
+++ gnucash/branches/2.4/packaging/win32/build_package.sh 2011-03-24 21:53:20 UTC (rev 20476)
@@ -10,7 +10,7 @@
function on_error() {
if [ `hostname` = "gnucash-win32" ]; then
- scp -p ${LOGFILE} upload at code.gnucash.org:public_html/win32/trunk
+ scp -p ${LOGFILE} upload at code.gnucash.org:public_html/win32/build-logs
fi
exit
}
@@ -22,13 +22,29 @@
. functions.sh
. defaults.sh
+# Determine where to upload to
+if $(echo $REPOS_URL | grep -q tags); then
+ TARGET_DIR=releases
+ LOG_TAG=$tag
+else
+ TARGET_DIR=${REPOS_URL##*/}
+ LOG_TAG=$TARGET_DIR
+fi
+
set_default OUTPUT_DIR $GLOBAL_DIR\\output
-LOGFILENAME=build${tag:+-${tag}}-`date +'%Y-%m-%d'`.log
+LOGFILENAME=build-${LOG_TAG}-`date +'%Y-%m-%d'`.log
_OUTPUT_DIR=`unix_path $OUTPUT_DIR`
LOGFILE=${_OUTPUT_DIR}/${LOGFILENAME}
mkdir -p ${_OUTPUT_DIR}
+if [ `hostname` = "gnucash-win32" ]; then
+ # Small hack to create the build-logs directory if it doesn't exist yet
+ mkdir "$TMP_DIR/build-logs"
+ scp -r "$TMP_DIR/build-logs" upload at code.gnucash.org:public_html/win32
+ rmdir "$TMP_DIR/build-logs"
+fi
+
set +e
trap on_error ERR
@@ -77,16 +93,11 @@
# If we're running on the build server then upload the files
# Note: change this target if you're building a different branch
if [ `hostname` = "gnucash-win32" ]; then
- # Determine where to upload to
- if $(echo $REPOS_URL | grep -q tags); then
- TARGET_DIR=releases
- else
- TARGET_DIR=${REPOS_URL##*/}
- fi
# Small hack to create the target directory if it doesn't exist yet
mkdir "$TMP_DIR/$TARGET_DIR"
scp -r "$TMP_DIR/$TARGET_DIR" upload at code.gnucash.org:public_html/win32
rmdir "$TMP_DIR/$TARGET_DIR"
# Copy the files to the chosen target directory
- scp -p ${LOGFILE} ${_OUTPUT_DIR}/${SETUP_FILENAME} upload at code.gnucash.org:public_html/win32/$TARGET_DIR
+ scp -p ${LOGFILE} upload at code.gnucash.org:public_html/win32/build-logs
+ scp -p ${_OUTPUT_DIR}/${SETUP_FILENAME} upload at code.gnucash.org:public_html/win32/$TARGET_DIR
fi
Modified: gnucash/branches/2.4/packaging/win32/daily_build.bat
===================================================================
--- gnucash/branches/2.4/packaging/win32/daily_build.bat 2011-03-24 21:50:01 UTC (rev 20475)
+++ gnucash/branches/2.4/packaging/win32/daily_build.bat 2011-03-24 21:53:20 UTC (rev 20476)
@@ -9,4 +9,4 @@
rem Tags build (daily -- only tags that weren't built yet)
c:\msys\1.0\bin\sh.exe --login c:\soft\packaging\build_tags.sh
rem 2.4 branch build (weekly)
-c:\msys\1.0\bin\sh.exe --login c:\soft\packaging\daily_build.sh c:\soft-2.4\packaging
\ No newline at end of file
+c:\msys\1.0\bin\sh.exe --login c:\soft-2.4\packaging\weekly_build.sh
\ No newline at end of file
More information about the gnucash-changes
mailing list