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:
parent
e70381a0b9
commit
e80520c9ac
1 changed files with 25 additions and 0 deletions
25
mac_upload_post.sh
Executable file
25
mac_upload_post.sh
Executable 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
|
||||||
|
|
Loading…
Reference in a new issue