Commit 84058383 authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

lrde-upload.sh: Add support for git branches

parent 96cc3a3f
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment