From aa33bee3793a6979634b1b4bbd29b94a0154bf59 Mon Sep 17 00:00:00 2001 From: Manatsawin Hanmongkolchai Date: Thu, 17 Nov 2022 00:20:36 +0700 Subject: Generate changelog on dist --- meson.build | 2 +- update-changelog.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 update-changelog.sh 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 -- cgit v1.2.1