Добавлена запись номера сборки (build) в исходник, при сборке deb-пакета
This commit is contained in:
parent
e382546121
commit
288cea7290
8
debian/build-deb-projman.sh
vendored
8
debian/build-deb-projman.sh
vendored
|
@ -1,16 +1,22 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd projman
|
cd ../
|
||||||
|
|
||||||
VERSION=$(grep Version projman.tcl | grep -oE '\b[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}\b')
|
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')
|
RELEASE=$(grep Release projman.tcl | grep -oE '\b[0-9A-Za-z]{1,3}\b')
|
||||||
|
BUILD_DATE=$(date +%d%m%Y%H%M%S)
|
||||||
|
TXT="# Build: ${BUILD_DATE}"
|
||||||
|
|
||||||
|
sed -i "/# Build:.*/c$TXT" projman.tcl
|
||||||
|
|
||||||
cp projman.tcl projman
|
cp projman.tcl projman
|
||||||
|
|
||||||
|
|
||||||
sed -i "s+^set\ dir(lib)+set\ dir(lib)\ /usr/share/projman/lib ;#+g" 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
|
sed -i "s+\[pwd\]+/usr/share/projman+g" projman
|
||||||
|
|
||||||
|
|
||||||
tar czf ../projman_${VERSION}.orig.tar.gz .
|
tar czf ../projman_${VERSION}.orig.tar.gz .
|
||||||
|
|
||||||
dpkg-buildpackage
|
dpkg-buildpackage
|
||||||
|
|
Loading…
Reference in New Issue
Block a user