build: Install ChangeLog.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 21 Jul 2018 21:56:08 +0000 (23:56 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 21 Jul 2018 21:56:08 +0000 (23:56 +0200)
* ChangeLog: New file.
* install.sh: Regenerate it, install it.

.gitignore
ChangeLog [new file with mode: 0644]
build-aux/export.make
install.sh

index 86f93cb20d1b6ce7bdc87ed526db14bcc64cab1d..e53bcf1e63c5e4c97adcdea0facef833c4ff6e48 100644 (file)
@@ -44,7 +44,6 @@
 /.config.make
 /.store
 /.tarball-version
-/ChangeLog
 
 #keep this: bootstrap
 #/mes.mes
diff --git a/ChangeLog b/ChangeLog
new file mode 100644 (file)
index 0000000..f5be91b
--- /dev/null
+++ b/ChangeLog
@@ -0,0 +1,4 @@
+Normally a ChangeLog is generated at "make dist" time and available in
+source tarballs.
+
+If not, see the Git commit log at <http://gitlab.com/janneke/mes/>.
index 33d9cf0a741f1b4d59d42a3753707231188ccb3b..afc0de2b7a61f88ebbce6fc6053e4e592ae8f217 100644 (file)
@@ -54,6 +54,10 @@ ifdef GUILE_TOOLS
 export GUILE_TOOLS
 endif
 
+ifdef PERL
+export PERL
+endif
+
 ifdef TCC
 export TCC
 endif
index 60c01c2464af979a220dd584d0dfbabbf3911dcb..95aef6de172fcb14085d4d1c9c841666c38aa6bb 100755 (executable)
@@ -36,10 +36,18 @@ chmod -w+x $DESTDIR$bindir/diff.scm
 
 
 mkdir -p $docdir
+
+if [ -n "$PERL" -a -n "$GIT" ]\
+       && $PERL -v > /dev/null\
+       && $GIT --status > /dev/null; then
+    $PERL build-aux/gitlog-to-changelog --srcdir=. > ChangeLog
+fi
+
 cp\
     AUTHORS\
     BOOTSTRAP\
     COPYING\
+    ChangeLog\
     HACKING\
     INSTALL\
     NEWS\