Fixed UpdateLoh.sh
This commit is contained in:
parent
bdd35af00c
commit
8d3eb7ad64
2 changed files with 18 additions and 8 deletions
8
Makefile
8
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
|
||||
|
|
18
UpdateLog.sh
Normal file → Executable file
18
UpdateLog.sh
Normal file → Executable file
|
@ -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 <cyanide.burnout@gmail.com> ${DATE}" >> debian/changelog
|
||||
echo >> debian/changelog
|
||||
echo "brandmeister ${VERSION} none; urgency=low" >> ${FILE}
|
||||
echo >> ${FILE}
|
||||
echo "* Daily build" >> ${FILE}
|
||||
echo >> ${FILE}
|
||||
echo " -- Artem Prilutskiy <cyanide.burnout@gmail.com> ${DATE}" >> ${FILE}
|
||||
echo >> ${FILE}
|
||||
|
||||
cat debian/changelog >> ${FILE}
|
||||
mv ${FILE} debian/changelog
|
||||
|
|
Loading…
Add table
Reference in a new issue