Make sure we copy the logfile even on error

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18170 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2009-07-03 12:57:34 +00:00
parent 975365c72a
commit 75c37f935f

View File

@ -8,6 +8,13 @@
set -e
function on_error() {
if [ `hostname` = "gnucash-win32" ]; then
scp -p ${LOGFILE} upload@code.gnucash.org:public_html/win32/trunk
fi
exit
}
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
tag="$1"
@ -22,6 +29,8 @@ _OUTPUT_DIR=`unix_path $OUTPUT_DIR`
LOGFILE=${_OUTPUT_DIR}/${LOGFILENAME}
mkdir -p ${_OUTPUT_DIR}
trap on_error ERR
# Run the compile
./install.sh 2>&1 | tee ${LOGFILE}