From 288cea7290d783dc804d40b74c0bbb9c964b901d Mon Sep 17 00:00:00 2001 From: svkalinin Date: Fri, 12 Aug 2022 15:21:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B7=D0=B0=D0=BF=D0=B8=D1=81=D1=8C=20=D0=BD?= =?UTF-8?q?=D0=BE=D0=BC=D0=B5=D1=80=D0=B0=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA?= =?UTF-8?q?=D0=B8=20(build)=20=D0=B2=20=D0=B8=D1=81=D1=85=D0=BE=D0=B4?= =?UTF-8?q?=D0=BD=D0=B8=D0=BA,=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=B1=D0=BE?= =?UTF-8?q?=D1=80=D0=BA=D0=B5=20deb-=D0=BF=D0=B0=D0=BA=D0=B5=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/build-deb-projman.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/build-deb-projman.sh b/debian/build-deb-projman.sh index b1c98d7..f5ca3b9 100755 --- a/debian/build-deb-projman.sh +++ b/debian/build-deb-projman.sh @@ -1,16 +1,22 @@ #!/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') 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 + 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