Add package compilation

This commit is contained in:
MatMoul 2017-02-04 21:38:44 +01:00
parent 46b26c708b
commit 137fecaea3
2 changed files with 15 additions and 1 deletions

View file

@ -37,6 +37,9 @@ echo "Finalise lib script..."
sed -i /apptitle=/c\apptitle=\""Arch Linux Desktop Install (archdi) - Version: $version (GPLv3)"\" lib
sed -i /baseurl=/c\baseurl=https://raw.githubusercontent.com/MatMoul/archdi-pkg/master lib
rm pkg.tar
tar -cf pkg.tar *
echo "Make last commit..."
git commit -a -m "New Release : $version"
@ -73,10 +76,13 @@ cp -R * $targetpath
echo "Finalise lib script..."
sed -i "/baseurl=/c\baseurl=http://downloads.sourceforge.net/project/archdi/release/pkg/$version" $targetpath/lib
rm $targetpath/pkg.tar
tar -cf $targetpath/pkg.tar
echo "Publish release..."
scp -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/release/pkg/
echo "Update redirect page..."
echo "Update lib redirect page..."
pubfile=.build/index.php
echo "<?php" > $pubfile
echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/pkg/$version/lib\");" >> $pubfile
@ -84,6 +90,14 @@ echo "exit;" >> $pubfile
echo "?>" >> $pubfile
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname-lib/index.php
echo "Update pkg redirect page..."
pubfile=.build/index.php
echo "<?php" > $pubfile
echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/pkg/$version/pkg.tar\");" >> $pubfile
echo "exit;" >> $pubfile
echo "?>" >> $pubfile
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname-pkg/index.php
rm -R .build
if [ ! "$branch" = "master" ]; then

BIN
pkg.tar Normal file

Binary file not shown.