File: mkeye

package info (click to toggle)
eye 20.1027.2307~ds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 16,180 kB
  • sloc: perl: 9,918; sh: 174; makefile: 16
file content (21 lines) | stat: -rwxr-xr-x 645 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
((!$#)) && echo Missing release message! && exit 1
export RELEASE="v$(date -u +"%y.%m%d.%H%M")"
pushd ~/github.com/josd/eye
cat /opt/eye/src/eye.pl | sed -e "s/EYE.*josd/EYE $RELEASE josd/" > eye.pl
sed -i '3 i\['"$RELEASE"'] '"$1"'' RELEASE
swipl -q -f eye.pl -g main -- --version 2>&1 | grep josd > VERSION
sudo ./install.sh
mkdir -p /tmp/eye
rsync -azv eye.pl eye.sh eye.cmd install.sh install.cmd INSTALL LICENSE RELEASE README VERSION /tmp/eye
pushd /tmp
zip -9ur eye.zip eye
popd
rsync -azv /tmp/eye.zip .
git commit -a -m "$1"
git push
git tag -a $RELEASE -m "$1"
git push origin $RELEASE
popd
rm /tmp/eye.zip
rm -fr /tmp/eye