aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@mandriva.com>2009-07-09 15:30:21 +0000
committerChristophe Fergeau <cfergeau@mandriva.com>2009-07-09 15:30:21 +0000
commit81a22bd34063f6f7adfcc3e841608f3cc788a726 (patch)
treec89b34ae464323b391ee46fe0872f4c0a440cfc6 /Makefile.am
parentaa90328c785b709a23239fe8d718e2c609374cb4 (diff)
downloadrpm-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.am13
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