From 8d3eb7ad6424e7e99c19919b533a3d61ada25692 Mon Sep 17 00:00:00 2001 From: Artem Prilutskiy Date: Thu, 24 Mar 2016 09:35:19 +0300 Subject: [PATCH] Fixed UpdateLoh.sh --- Makefile | 8 ++++++++ UpdateLog.sh | 18 ++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) mode change 100644 => 100755 UpdateLog.sh diff --git a/Makefile b/Makefile index 36f8e83..c6135df 100644 --- a/Makefile +++ b/Makefile @@ -48,4 +48,12 @@ clean: version: echo "#define VERSION $(shell svn info | grep -E "^Revision:" | grep -o -E "[0-9]+")" > Version.h +debian-package: + ./UpdateLog.sh +ifdef ARCH + dpkg-buildpackage -b -a$(ARCH) -tc +else + dpkg-buildpackage -b -tc +endif + .PHONY: all build clean install diff --git a/UpdateLog.sh b/UpdateLog.sh old mode 100644 new mode 100755 index bf992a2..b3d4868 --- a/UpdateLog.sh +++ b/UpdateLog.sh @@ -1,13 +1,15 @@ #!/bin/bash -VERSION=(grep -o -E "[0-9]+" Version.h) +FILE=$(mktemp) +VERSION=$(grep -o -E "[0-9]+" Version.h) DATE=$(date +"%a, %d %b %a %H:%M:%S %z") -echo >> debian/changelog -echo "brandmeister ${VERSION} none; urgency=low" >> debian/changelog -echo >> debian/changelog -echo "* Daily build" >> debian/changelog -echo >> debian/changelog -echo " -- Artem Prilutskiy ${DATE}" >> debian/changelog -echo >> debian/changelog +echo "brandmeister ${VERSION} none; urgency=low" >> ${FILE} +echo >> ${FILE} +echo "* Daily build" >> ${FILE} +echo >> ${FILE} +echo " -- Artem Prilutskiy ${DATE}" >> ${FILE} +echo >> ${FILE} +cat debian/changelog >> ${FILE} +mv ${FILE} debian/changelog