2022-07-21 10:56:46 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-21 14:08:56 +03:00
|
|
|
cd projman
|
2022-07-21 10:56:46 +03:00
|
|
|
|
|
|
|
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')
|
|
|
|
|
2022-07-21 14:08:56 +03:00
|
|
|
cp projman.tcl projman
|
2022-07-21 10:56:46 +03:00
|
|
|
|
|
|
|
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/
|
|
|
|
|
2022-07-21 16:01:28 +03:00
|
|
|
rm projman
|