git.iko.soy/typeable/pandoc
on master help sign in
Ensure that we have always up-to-date version of ChangeLog before creating

a Debian package. Make 'ChangeLog' target PHONY to force an update. git-svn-id: https://pandoc.googlecode.com/svn/trunk@46 788f1e2b-df1e-0410-8736-df70ead52e1b

commit45f317e71f734358f6e9989c6937f3faf6398d18 authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> dateMon 30 Oct 2006, 12:36 (20 years ago) parent1ba9113
2 files changed+23−4
ChangeLog+13−1 Makefile+10−3
ChangeLog+13−1
@@ -1,3 +1,15 @@
1+2006-10-30 Recai Oktaş <roktas@debian.org>
2+
3+ Make debian/rules executable to avoid errors in 'distclean' target.
4+
5+2006-10-30 Recai Oktaş <roktas@debian.org>
6+
7+ Modifications to create a nice ChangeLog.
8+ + Add new file 'gnuify-changelog.pl' grabbed and adapted from subversion
9+ distribution.
10+ + Add 'ChangeLog' target to create/update ChangeLog.
11+ + Update current ChangeLog.
12+
1132006-10-30 Recai Oktaş <roktas@debian.org>
214
315 Really fix cabal version detection.
@@ -262,7 +274,7 @@
262274
263275 initial import
264276
265−2006-10-03
277+05:49:25 |
266278
267279 Initial directory structure.
268280
Makefile+10−3
@@ -197,10 +197,17 @@ tags: $(src_all)
197197 cd $(SRCDIR) && hasktags -c $(src_all:$(SRCDIR)/%=%); \
198198 LC_ALL=C sort tags >tags.sorted; mv tags.sorted tags
199199
200−ChangeLog: ../.svn/entries gnuify-changelog.pl
201− svn log .. | sed 's/(no author)//' | ./gnuify-changelog.pl >$@
200+.PHONY: ChangeLog
201+# should always attempt to update ChangeLog, hence .PHONY
202+ChangeLog: gnuify-changelog.pl
203+ @echo "Updating ChangeLog file before packaging..."
204+ svn update ..
205+ svn log .. | sed 's/| (no author) |/| |/' | ./gnuify-changelog.pl >$@
206+ @if [ -n "$$(svn status $@))" ]; then \
207+ echo "*** ChangeLog modified, please commit changes! ***"; \
208+ fi
202209
203−deb: debian
210+deb: debian ChangeLog
204211 [ -x /usr/bin/fakeroot ] || { \
205212 echo "*** Please install fakeroot package. ***"; \
206213 exit 1; \