1#!/usr/bin/env bash
2# Copyright © 2021 Christian Persch
3#
4# This programme is free software; you can redistribute it and/or modify it
5# under the terms of the GNU General Public License as published by
6# the Free Software Foundation; either version 3 of the License, or (at your
7# option) any later version.
8#
9# This programme is distributed in the hope that it will be useful, but
10# WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12# See the GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with this programme.  If not, see <https://www.gnu.org/licenses/>.
16
17set -e
18
19top_srcdir="$MESON_SOURCE_ROOT"
20top_builddir="MESON_BUILD_ROOT"
21top_distdir="$MESON_DIST_ROOT"
22
23if ! test -e "${top_srcdir}"/.git; then
24    echo "Must be run from gnome-terminal git checkout"
25    exit 1
26fi
27
28if ! test -e "${top_distdir}"; then
29    echo "Must be run from 'meson dist'"
30    exit 1
31fi
32
33GIT_DIR="${top_srcdir}"/.git git log --stat > "${top_distdir}"/ChangeLog
34