1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-07-07 02:54:18 -04:00

Don't update ChangeLog unless the source tree is a git repo

This commit is contained in:
Kim Holviala 2014-01-25 14:45:00 +02:00
parent d858e44be8
commit 863d4c2cbd

View File

@ -61,9 +61,11 @@ deb: ChangeLog
dpkg-buildpackage -rfakeroot -uc -us
ChangeLog:
./git2changelog > .ChangeLog
sed -ne '/2012-12-02/,$$p' ChangeLog >> .ChangeLog
mv .ChangeLog ChangeLog
if [ -d .git ]; then \
(./git2changelog > .ChangeLog; \
sed -ne '/2012-12-02/,$$p' ChangeLog >> .ChangeLog; \
mv .ChangeLog ChangeLog); \
else true; fi
.PHONY: ChangeLog