diff options
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 |