diff options
author | Christophe Fergeau <cfergeau@mandriva.com> | 2009-07-09 15:30:21 +0000 |
---|---|---|
committer | Christophe Fergeau <cfergeau@mandriva.com> | 2009-07-09 15:30:21 +0000 |
commit | 81a22bd34063f6f7adfcc3e841608f3cc788a726 (patch) | |
tree | c89b34ae464323b391ee46fe0872f4c0a440cfc6 /Makefile.am | |
parent | aa90328c785b709a23239fe8d718e2c609374cb4 (diff) | |
download | rpm-setup-81a22bd34063f6f7adfcc3e841608f3cc788a726.tar rpm-setup-81a22bd34063f6f7adfcc3e841608f3cc788a726.tar.gz rpm-setup-81a22bd34063f6f7adfcc3e841608f3cc788a726.tar.bz2 rpm-setup-81a22bd34063f6f7adfcc3e841608f3cc788a726.tar.xz rpm-setup-81a22bd34063f6f7adfcc3e841608f3cc788a726.zip |
Use git2cl to generate ChangeLog if we detect a git repository
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 6d1890b..18888e9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -126,9 +126,22 @@ endif .PHONY: ChangeLog test ChangeLog: + @if [ -e ".svn" ]; then \ + $(MAKE) ChangeLog-svn; \ + elif [ -e ".git" ]; then \ + $(MAKE) ChangeLog-git; \ + else \ + echo "Unknown SCM (not SVN nor GIT)";\ + exit 1; \ + fi; + +ChangeLog-svn: LC_ALL=C svn2cl rm -f *.bak +ChangeLog-git: + @git2cl >ChangeLog + test: $(pkg_gdata) $(pkg_gscripts) $(arch_macrosfiles) $(pkg_gconfig) sh tests.sh |