aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2019-01-12 00:35:42 +0200
committerTulir Asokan <tulir@maunium.net>2019-01-12 00:35:42 +0200
commite539a9098ca02b8ca20862a4944e9afc477a7973 (patch)
tree1eb53467bd98187d2640b1d86ce744e0222d6ca3 /scripts
parentde39ec86ffdb4d45231c55b6d641b13e0eeaa07d (diff)
Update CI script and tcell
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/ci b/scripts/ci
index a05ef7c..f73df98 100755
--- a/scripts/ci
+++ b/scripts/ci
@@ -27,9 +27,11 @@ cp target/$PROJECT_NAME-linux-amd64 deb/usr/bin/gomuks
git clone https://github.com/tulir/tcell.git .tmp/tcell
mkdir -p deb/usr/share/tcell/
rm -rf deb/usr/share/tcell/database
-cp -r .tmp.tcell/terminfo/database deb/usr/share/tcell
+cp -r .tmp/tcell/terminfo/database deb/usr/share/tcell
sed -i.bak -E 's/(Version: [0-9]+\.[0-9]+\.[0-9]+\-[0-9]+)/\1+'$SHORTHEAD'/' deb/DEBIAN/control
+chmod -R -s deb/DEBIAN
+chmod -R 0755 deb/DEBIAN
dpkg-deb --build deb 'target/'$PROJECT_NAME'_linux_amd64.deb'
mv -f deb/DEBIAN/control.bak deb/DEBIAN/control