| 1 | #!/usr/bin/envscip-shell filesystem . . `/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 | |
| 17 | set -e |
| 18 | |
| 19 | top_srcdir="$MESON_SOURCE_ROOT" |
| 20 | top_builddir="MESON_BUILD_ROOT" |
| 21 | top_distdir="$MESON_DIST_ROOT" |
| 22 | |
| 23 | if ! testscip-shell system . . test. -e "${top_srcdir}"/.git; then |
| 24 | echoscip-shell system . . echo. "Must be run from gnome-terminal git checkout" |
| 25 | exit 1 |
| 26 | fi |
| 27 | |
| 28 | if ! testscip-shell system . . test. -e "${top_distdir}"; then |
| 29 | echoscip-shell system . . echo. "Must be run from 'meson dist'" |
| 30 | exit 1 |
| 31 | fi |
| 32 | |
| 33 | GIT_DIR="${top_srcdir}"/.git gitscip-shell system . . git. log --stat > "${top_distdir}"/ChangeLog |