diff --git a/archfi b/archfi index 610f0a8..8c56b0c 100644 --- a/archfi +++ b/archfi @@ -12,7 +12,7 @@ # referance : https://wiki.archlinux.org/index.php/Installation_guide -apptitle="Arch Linux Fast Install (archfi) - Version: 2015.08.20.21.54.44 (GPLv3)" +apptitle="Arch Linux Fast Install (archfi) - Version: 2015.08.20.21.59.13 (GPLv3)" baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master diff --git a/makerelease b/makerelease old mode 100644 new mode 100755 index 5487765..d6525bb --- a/makerelease +++ b/makerelease @@ -2,7 +2,13 @@ ssh -T git@github.com if [ ! "$?" = "1" ]; then - echo "No ssh key loaded exiting..." + echo "No Github ssh key loaded exiting..." + exit 1 +fi + +scp matmoul@web.sourceforge.net:/home/frs/project/$prjname/README.txt /dev/null +if [ ! "$?" = "1" ]; then + echo "No Sourceforge ssh key loaded exiting..." exit 1 fi @@ -88,14 +94,12 @@ sed -i "/baseurl=/c\baseurl=http://downloads.sourceforge.net/project/archfi/rele echo "Publish release..." scp -r $targetpath matmoul@web.sourceforge.net:/home/frs/project/$prjname/release/ -# Make redirect Page -#echo "Update redirect page..." -#pubfile=.build/index.php -#echo " $pubfile -#echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/$version/$prjname\");" >> $pubfile -#echo "exit;" >> $pubfile -#echo "?>" >> $pubfile -#scp -r $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/ -# End Make redirect Page +echo "Update redirect page..." +pubfile=.build/index.php +echo " $pubfile +echo "header(\"Location: http://downloads.sourceforge.net/project/$prjname/release/$version/$prjname\");" >> $pubfile +echo "exit;" >> $pubfile +echo "?>" >> $pubfile +scp -r $pubfile matmoul@web.sourceforge.net:/home/project-web/$prjname/htdocs/$prjname/ rm -R .build