mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
975365c72a
commit
75c37f935f
@ -8,6 +8,13 @@
|
|||||||
|
|
||||||
set -e
|
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'; }
|
function unix_path() { echo "$*" | sed 's,^\([A-Za-z]\):,/\1,;s,\\,/,g'; }
|
||||||
|
|
||||||
tag="$1"
|
tag="$1"
|
||||||
@ -22,6 +29,8 @@ _OUTPUT_DIR=`unix_path $OUTPUT_DIR`
|
|||||||
LOGFILE=${_OUTPUT_DIR}/${LOGFILENAME}
|
LOGFILE=${_OUTPUT_DIR}/${LOGFILENAME}
|
||||||
mkdir -p ${_OUTPUT_DIR}
|
mkdir -p ${_OUTPUT_DIR}
|
||||||
|
|
||||||
|
trap on_error ERR
|
||||||
|
|
||||||
# Run the compile
|
# Run the compile
|
||||||
./install.sh 2>&1 | tee ${LOGFILE}
|
./install.sh 2>&1 | tee ${LOGFILE}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user