Исправлен скрипт сборки пакета для Debian

This commit is contained in:
svkalinin
2022-07-21 14:08:56 +03:00
parent 1840836db9
commit 242a971403
2 changed files with 3 additions and 4 deletions

20
debian/build-deb-projman.sh vendored Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
cd projman
VERSION=$(grep Version projman.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b')
RELEASE=$(grep Release projman.tcl | grep -oE '\b[0-9A-Za-z]{1,3}\b')
cp projman.tcl projman
sed -i "s+^set\ dir(lib)+set\ dir(lib)\ /usr/share/projman/lib ;#+g" projman
sed -i "s+\[pwd\]+/usr/share/projman+g" projman
tar czf ../projman_${VERSION}.orig.tar.gz .
dpkg-buildpackage
#cp ../projman_${VERSION}-${RELEASE}_amd64.deb /files/
rm projman