New makerelease

This commit is contained in:
MatMoul 2015-08-20 19:44:59 +02:00
parent 8bf52a6125
commit 86fcf7896e

View file

@ -2,25 +2,42 @@
prjname=archfi prjname=archfi
version=$(date +"%Y.%m.%d.%H.%M.%S") version=$(date +"%Y.%m.%d.%H.%M.%S")
srcpath=. branch=$(git rev-parse --abbrev-ref HEAD)
#archfi clear
#sed /apptitle=/c\apptitle=\""Arch Linux Fast Install (archfi) - Version: $version (GPLv3)"\" archfi |more read -p "Current branch is $branch. Continue ? (y/N)" choice
#sed /baseurl=/c\baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master archfi |more case "$choice" in
n|N|'' )
echo "cancel build !"
exit 1
;;
y|Y ) echo "Begin Build Release...";;
* )
echo "cancel build !"
exit 1
;;
esac
echo "Building version $version..."
echo ""
echo "Finalise archfi script..."
#sed -i /apptitle=/c\apptitle=\""Arch Linux Fast Install (archfi) - Version: $version (GPLv3)"\" archfi #sed -i /apptitle=/c\apptitle=\""Arch Linux Fast Install (archfi) - Version: $version (GPLv3)"\" archfi
#sed -i /baseurl=/c\baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master archfi #sed -i /baseurl=/c\baseurl=https://raw.githubusercontent.com/MatMoul/archfi/master archfi
echo "Finalise CHANGELOG..."
#sed -i '/Current\ Version\ :/{n;d}' CHANGELOG
#sed -i '/Current\ Version\ :/a-------------------------------' CHANGELOG
#sed -i "/Current\ Version\ :/c\Version\ :\ $version\ :" CHANGELOG
#sed -i '1s/^/\n/' CHANGELOG
#sed -i '1s/^/-----------------\n/' CHANGELOG
#sed -i '1s/^/Current Version :\n/' CHANGELOG
#CHANGELOG echo "Make last commit..."
#sed '/Current\ Version\ :/{n;d}' CHANGELOG |more git commit -m "New Release : $version" *
#sed '/Current\ Version\ :/a-------------------------------' CHANGELOG |more
#sed "/Current\ Version\ :/c\Version\ :\ $version\ :" CHANGELOG |more
sed '1s/^/\n/' CHANGELOG |more
sed '1s/^/-----------------\n/' CHANGELOG |more
sed '1s/^/Current Version :\n/' CHANGELOG |more
#commit echo "Merge branch $branch to master..."
#fuse branch git checkout master
git merge $branch