lrde-upload.sh: Add support for git branches
This commit is contained in:
parent
96cc3a3f67
commit
8405838347
1 changed files with 15 additions and 7 deletions
|
|
@ -6,10 +6,18 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
rm -rf /lrde/dload/spot/spot-snapshot.tmp
|
||||
cp -pR doc/spot.html /lrde/dload/spot/spot-snapshot.tmp
|
||||
chmod -R a+rX /lrde/dload/spot/spot-snapshot.tmp
|
||||
mv -f spot-*.tar.gz /lrde/dload/spot/spot-snapshot.tar.gz
|
||||
chmod a+rX /lrde/dload/spot/spot-snapshot.tar.gz
|
||||
rm -rf /lrde/dload/spot/spot-snapshot.html
|
||||
mv -f /lrde/dload/spot/spot-snapshot.tmp /lrde/dload/spot/spot-snapshot.html
|
||||
# Buildbot will tell us the name of the branch being compiled using $1.
|
||||
rev=$1
|
||||
|
||||
case $rev in
|
||||
master) rev=;;
|
||||
*) rev="-$rev";;
|
||||
esac
|
||||
|
||||
rm -rf /lrde/dload/spot/spot-snapshot$rev.tmp
|
||||
cp -pR doc/spot.html /lrde/dload/spot/spot-snapshot$rev.tmp
|
||||
chmod -R a+rX /lrde/dload/spot/spot-snapshot$rev.tmp
|
||||
mv -f spot-*.tar.gz /lrde/dload/spot/spot-snapshot$rev.tar.gz
|
||||
chmod a+rX /lrde/dload/spot/spot-snapshot$rev.tar.gz
|
||||
rm -rf /lrde/dload/spot/spot-snapshot$rev.html
|
||||
mv -f /lrde/dload/spot/spot-snapshot$rev.tmp /lrde/dload/spot/spot-snapshot$rev.html
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue