mkeye 722 Bytes
Newer Older
josd's avatar
josd committed
1 2
#!/bin/bash
((!$#)) && echo Missing release message! && exit 1
josd's avatar
josd committed
3
export RELEASE="v$(date -u +"%y.%m%d.%H%M")"
josd's avatar
josd committed
4
pushd ~/github.com/josd/eye
5 6 7 8
cat /opt/eye/src/eye.prolog | sed -e "s/EYE.*josd/EYE $RELEASE josd/" > eye.prolog
sed -i '3 i\['"$RELEASE"'] '"$1"'' RELEASE
swipl -q -f eye.prolog -g main -- --version 2>&1 | grep josd > VERSION
sudo ./install.sh
josd's avatar
josd committed
9 10 11 12 13 14 15 16 17 18 19 20 21
mkdir -p /tmp/eye
rsync -azv eye.prolog eye.sh eye.cmd install.sh install.cmd INSTALL LICENSE RELEASE README.md VERSION /tmp/eye
pushd /tmp
zip -9ur eye.zip eye
popd
rsync -azv /tmp/eye.zip .
git commit -a -m "$1"
git push
git checkout gh-pages
git pull
git merge master -m republish
git push
git checkout master
josd's avatar
josd committed
22 23
git tag -a $RELEASE -m "$1"
git push origin $RELEASE
josd's avatar
josd committed
24
popd