1
0
Fork 0

Initial hacking on a post-upload script.

- this will live on download.flightgear.org, but adding
here so it can be maintained visibly.
This commit is contained in:
James Turner 2015-03-11 17:48:33 +00:00
parent e70381a0b9
commit e80520c9ac

25
mac_upload_post.sh Executable file
View file

@ -0,0 +1,25 @@
#!/bin/sh
if [ $# -lt 1 ]; then
echo "Must supply FlightGear version as an argument, eg 3.5.2"
exit
fi
FG_VERSION = $1
SF_FRS_PATH = "jmturner@frs.sourceforge.net:/home/frs/project/f/fl/flightgear/unstable/"
echo "Running Mac upload post-processing steps"
cd /var/www/html/builds/nightly
# first, remove any existing DMG binaries
rm FlightGear-*.dmg
# move newly upload files
mv $HOME/nightly-incoming/FlightGear-$FG_VERSION-nightly.dmg .
mv $HOME/nightly-incoming/FlightGear-$FG_VERSION-nightly-full.dmg .
# rsync to SourceForge
rsync -avP -e ssh FlightGear-$FG_VERSION-nightly.dmg $SF_FRS_PATH
rsync -avP -e ssh FlightGear-$FG_VERSION-nightly-full.dmg $SF_FRS_PATH