Add package compilation
This commit is contained in:
parent
46b26c708b
commit
137fecaea3
2 changed files with 15 additions and 1 deletions
16
makerelease
16
makerelease
|
@ -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
BIN
pkg.tar
Normal file
Binary file not shown.
Loading…
Reference in a new issue