Source

repo-commit / Makefile.am

Full commit
dist_bin_SCRIPTS = repo-commit
dist_man1_MANS = repo-commit.1

EXTRA_DIST = repo-commit.in repo-commit.1.in

$(dist_bin_SCRIPTS) $(dist_man1_MANS): configure.ac
	rm -f $@ $@.tmp
	$(SED) -e "s|@PACKAGE_STRING[@]|@PACKAGE_STRING@|" ${srcdir}/$@.in > $@.tmp
	! [ -x $@.in ] || chmod +x $@.tmp
	chmod a-w $@.tmp
	mv $@.tmp $@

repo-commit: repo-commit.in
repo-commit.1: repo-commit.1.in

EXTRA_DIST += NEWS
NEWS: configure.ac Makefile.am
	git for-each-ref refs/tags --sort '-*committerdate' \
		--format '# %(tag) (%(*committerdate:short))%0a%(contents:body)' \
		> NEWS