aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-10-30 12:36:32 +0000
committerroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-10-30 12:36:32 +0000
commit45f317e71f734358f6e9989c6937f3faf6398d18 (patch)
tree5bc0b43647a1c2670e3a80ee2d9ff1754e2bb5d1
parent1ba9113d7e0541658d90c02ac58198398c161256 (diff)
downloadpandoc-45f317e71f734358f6e9989c6937f3faf6398d18.tar.gz
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
-rw-r--r--ChangeLog14
-rw-r--r--Makefile13
2 files changed, 23 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 661006155..f778e07ad 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
2006-10-30 Recai Oktaş <roktas@debian.org>
+ Make debian/rules executable to avoid errors in 'distclean' target.
+
+2006-10-30 Recai Oktaş <roktas@debian.org>
+
+ Modifications to create a nice ChangeLog.
+ + Add new file 'gnuify-changelog.pl' grabbed and adapted from subversion
+ distribution.
+ + Add 'ChangeLog' target to create/update ChangeLog.
+ + Update current ChangeLog.
+
+2006-10-30 Recai Oktaş <roktas@debian.org>
+
Really fix cabal version detection.
2006-10-30 Recai Oktaş <roktas@debian.org>
@@ -262,7 +274,7 @@
initial import
-2006-10-03
+05:49:25 |
Initial directory structure.
diff --git a/Makefile b/Makefile
index 2479b55c6..3752bec14 100644
--- a/Makefile
+++ b/Makefile
@@ -197,10 +197,17 @@ tags: $(src_all)
cd $(SRCDIR) && hasktags -c $(src_all:$(SRCDIR)/%=%); \
LC_ALL=C sort tags >tags.sorted; mv tags.sorted tags
-ChangeLog: ../.svn/entries gnuify-changelog.pl
- svn log .. | sed 's/(no author)//' | ./gnuify-changelog.pl >$@
+.PHONY: ChangeLog
+# should always attempt to update ChangeLog, hence .PHONY
+ChangeLog: gnuify-changelog.pl
+ @echo "Updating ChangeLog file before packaging..."
+ svn update ..
+ svn log .. | sed 's/| (no author) |/| |/' | ./gnuify-changelog.pl >$@
+ @if [ -n "$$(svn status $@))" ]; then \
+ echo "*** ChangeLog modified, please commit changes! ***"; \
+ fi
-deb: debian
+deb: debian ChangeLog
[ -x /usr/bin/fakeroot ] || { \
echo "*** Please install fakeroot package. ***"; \
exit 1; \