summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build2
-rwxr-xr-xupdate-changelog.sh5
2 files changed, 6 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index 54b6db0..b5362fc 100644
--- a/meson.build
+++ b/meson.build
@@ -210,4 +210,4 @@ if get_option('thumbnailer')
subdir('thumbnailer')
endif
-# TODO: Changelog
+meson.add_dist_script('update-changelog.sh')
diff --git a/update-changelog.sh b/update-changelog.sh
new file mode 100755
index 0000000..4c0945d
--- /dev/null
+++ b/update-changelog.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -e
+if [ -d "${MESON_SOURCE_ROOT}/.git" ]; then
+ GIT_DIR="${MESON_SOURCE_ROOT}/.git" git log --stat > $MESON_DIST_ROOT/ChangeLog
+fi