Bug: copy files to sourceforge
This commit is contained in:
parent
3f3d39300d
commit
1d1e16e259
1 changed files with 2 additions and 3 deletions
|
@ -92,13 +92,12 @@ echo "Finalise archfi script..."
|
||||||
sed -i "/baseurl=https:\/\/raw.githubusercontent.com\/MatMoul\/archfi/c\baseurl=http://downloads.sourceforge.net/project/archfi/release/$version" $targetpath/archfi
|
sed -i "/baseurl=https:\/\/raw.githubusercontent.com\/MatMoul\/archfi/c\baseurl=http://downloads.sourceforge.net/project/archfi/release/$version" $targetpath/archfi
|
||||||
|
|
||||||
echo "Publish release..."
|
echo "Publish release..."
|
||||||
scp -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/release/
|
rsync -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/release/
|
||||||
|
|
||||||
echo "Update redirect page..."
|
echo "Update redirect page..."
|
||||||
pubfile=.build/index.php
|
pubfile=.build/index.php
|
||||||
echo "<?php" > $pubfile
|
echo "<?php" > $pubfile
|
||||||
#echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/$version/$prjname\");" >> $pubfile
|
echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/$version/$prjname\");" >> $pubfile
|
||||||
echo "header(\"Location: https://matmoul.github.io/archfi\");" >> $pubfile
|
|
||||||
echo "exit;" >> $pubfile
|
echo "exit;" >> $pubfile
|
||||||
echo "?>" >> $pubfile
|
echo "?>" >> $pubfile
|
||||||
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/index.php
|
scp $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/index.php
|
||||||
|
|
Loading…
Reference in a new issue