diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-09-15 10:40:29 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2009-09-15 10:40:54 +0300 |
commit | 989a5bbb74c3620abaa2191ce2c4f8d5968dbf0a (patch) | |
tree | c0b2324a523905c3c17201cc2468c9078976fc74 /Makefile.am | |
parent | dbad35177723e19147ab49b59a3728e00fe05875 (diff) | |
download | pies-989a5bbb74c3620abaa2191ce2c4f8d5968dbf0a.tar.gz pies-989a5bbb74c3620abaa2191ce2c4f8d5968dbf0a.tar.bz2 |
Branch off from the Mailfromd project into a separate repository.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..f665de1 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,35 @@ +ACLOCAL_AMFLAGS = -I m4 -I am + +SUBDIRS=gnu lib src doc po + +# Define the following variables in order to use the ChangeLog rule below: +# prev_change_log [optional] Name of the previous ChangeLog file. +# gen_start_date [optional] Start ChangeLog from this date. +# changelog_dir [mandatory] Directory where to create ChangeLog +prev_change_log = ChangeLog.mfd +gen_start_date = 2009-09-04 +changelog_dir = . + +.PHONY: ChangeLog +ChangeLog: + if test -d .git; then \ + cmd=$(top_srcdir)/build-aux/gitlog-to-changelog; \ + if test -n "$(gen_start_date)"; then \ + cmd="$$cmd --since=\"$(gen_start_date)\""; \ + fi; \ + $$cmd --format='%s%n%n%b%n' | \ + sed '/<unknown>$$/d' | fmt -s > $(changelog_dir)/cl-t; \ + if test -n "$(prev_change_log)" && test -f "$(prev_change_log)"; \ + then \ + echo "" >> $(changelog_dir)/cl-t; \ + cat "$(prev_change_log)" | \ + sed '/^Local Variables:/,/^End:/d' >> $(changelog_dir)/cl-t; \ + fi; \ + echo "Local Variables:" >> $(changelog_dir)/cl-t; \ + echo "mode: change-log" >> $(changelog_dir)/cl-t; \ + echo "version-control: never" >> $(changelog_dir)/cl-t; \ + echo "buffer-read-only: t" >> $(changelog_dir)/cl-t; \ + echo "End:" >> $(changelog_dir)/cl-t; \ + rm -f $(changelog_dir)/ChangeLog; \ + mv $(changelog_dir)/cl-t $(changelog_dir)/ChangeLog; \ + fi |