diff options
author | 2008-11-10 22:42:25 +0000 | |
---|---|---|
committer | 2008-11-10 22:42:25 +0000 | |
commit | b77e39be895e5fdec22489c377a4c870ae542074 (patch) | |
tree | 9af0f0308a48abf13ff891f41936b393c7d7d378 /Makefile.am | |
parent | sandbox: convert to stdbool (diff) | |
download | sandbox-b77e39be895e5fdec22489c377a4c870ae542074.tar.gz sandbox-b77e39be895e5fdec22489c377a4c870ae542074.tar.bz2 sandbox-b77e39be895e5fdec22489c377a4c870ae542074.zip |
get the ChangeLog hook working with distcheck
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index ac8801d..3aaf38c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -14,5 +14,14 @@ src: libsbutil EXTRA_DIST = headers.h localdecls.h ChangeLog.0 dist-hook: - PATH="$${PATH}:./scripts" svn2cl - cp ChangeLog $(distdir) + set -e ; \ + if [ -d "$(top_srcdir)/.svn" -a -x "$(top_srcdir)/scripts/svn2cl" ] ; then \ + PATH="$${PATH}:$(top_srcdir)/scripts" svn2cl ; \ + cp ChangeLog $(distdir) ; \ + elif [ ! -e "$(distdir)/ChangeLog" ] ; then \ + if [ -e "$(top_srcdir)/ChangeLog" ] ; then \ + cp "$(top_srcdir)/ChangeLog" "$(distdir)/ChangeLog" ; \ + else \ + touch "$(distdir)/ChangeLog" ; \ + fi ; \ + fi |