At last my automated compilation of "nightlies" run smooth.
It runs on a 64 bits computer whose system is Mint Nadia 64 bits, to produce
32 bits executable mscore file, uploaded as a tar file.
The bash script «mscoremaj» is pasted herebelow
Relevant repertories and files are :
~/musescore into which is
the git repertory : MuseScore
an historical repertory : historique
the bash script itself : mscoremaj
and 3 files containing :
the Mint session password : motdepassesession
the upload identifier : identifiant
the upload password : motdepasse
The script is launched each hour from gnome-schedule with the following line
~/musescore/mscoremaj >> /tmp/log.txt 2>&1
which writes a logfile in /tmp
_________________________________________________________
#!/bin/bash
#mscoremaj
# if this script is launched with a tube to a log file the following file
stamp it
date +%Y-%m-%d-%H-%M
# going to compilation directory
MUSEPATH=~/musescore/MuseScore/
cd $MUSEPATH
REVISION_OLD=`cat ./mscore/revision.h`
echo $REVISION_OLD
#updating
git pull
make revision
REVISION=`cat ./mscore/revision.h`
echo $REVISION
if [ "$REVISION_OLD" == "$REVISION" -a "$#" -eq "0" ]; then
# if one wants to be advised of any activation of the script, uncomment the
two following lines
# zenity --info \
# --text='Pas de nouvelle version de MuseScore. '$REVISION_OLD' =
#'$REVISION --display=:0
exit
#else
# zenity --info \
# --text='Nouvelle version de MuseScore !'$REVISION_OLD' => '$REVISION
--display=:0
fi
#following line to force 32 bits compilation on a 64 bits computer. To be
commented if the computer is 32 bits
export CFLAGS="-m32"
make
#importing the session password from auxiliary file
MOTDEPASSE=`cat ../motdepassesession`
echo $MOTDEPASSE | sudo -S make install
cd $MUSEPATH
#building the name of the file to upload
date=$(stat -c %y ./build.release/mscore/mscore)
jour=${date:0:10}
heure=${date:11:2}
minute=${date:14:2}
fin=$(<./mscore/revision.h)
nom="mscore-"$jour"-"$heure"-"$minute"-"$fin
#creating the file to upload,
cd ./build.release
cd ./mscore
tar -jcvf ../../../historique/$nom.tar.bz2 mscore
cd ../../../historique/
#importing the upload identifier from auxiliary file
IDENTIFIANT=`cat ../identifiant`
echo $IDENTIFIANT
MOTDEPASSE=`cat ../motdepasse`
echo $MOTDEPASSE
#uploading
curl -T $nom.tar.bz2 -u $IDENTIFIANT:$MOTDEPASSE
ftp://prereleases.musescore.org/
# displaying the internet page to advise that an upload took place
firefox --display=:0 -new-window
http://prereleases.musescore.org/linux/nightly/
#fi
exit 0
--
View this message in context:
http://dev-list.musescore.org/Automated-compilation-of-nightlies-tp7578153.html
Sent from the MuseScore Developer mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Mscore-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mscore-developer