Mercurial > hg > aboriginal
changeset 1015:cf7d68a74efa
Factor out the upload into a shell function, and upload each package's results as available, rather than waiting until the end to upload everything at once.
author | Rob Landley <rob@landley.net> |
---|---|
date | Sat, 27 Mar 2010 20:31:21 -0500 |
parents | 75054b02f21d |
children | 10e435a91df3 |
files | sources/native-builds/static-tools.sh |
diffstat | 1 files changed, 7 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/sources/native-builds/static-tools.sh Sat Mar 27 20:26:58 2010 -0500 +++ b/sources/native-builds/static-tools.sh Sat Mar 27 20:31:21 2010 -0500 @@ -51,10 +51,12 @@ cat > "$WORK"/init << 'EOF' || dienow #!/bin/bash -echo Started second stage init +upload_result() +{ + ftpput 10.0.2.2 -P $OUTPORT $ARCH-"$1" "$1" +} -cd /home && -mkdir output && +echo Started second stage init echo === Native build static dropbear @@ -62,7 +64,7 @@ cd dropbear && LDFLAGS="--static" ./configure --disable-zlib && make -j $CPUS PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" MULTI=1 SCPPROGRESS=1 && -cp dropbearmulti /home/output && +upload_result dropbearmulti && cd .. && rm -rf dropbear || exit 1 @@ -72,18 +74,10 @@ cd strace && CFLAGS="--static" ./configure && make -j $CPUS && -cp strace /home/output && +upload_result strace && cd .. && rm -rf strace || dienow -echo === Upload - -cd /home/output -for i in * -do - ftpput 10.0.2.2 -P $OUTPORT $ARCH-$i $i -done - sync EOF