diff --git a/Makefile.am b/Makefile.am
index 73c15d5..f1ac021 100644
a
|
b
|
EXTRA_DIST = |
7 | 7 | |
8 | 8 | dist_noinst_SCRIPTS = build-glib2.sh |
9 | 9 | |
10 | | dist_noinst_HEADERS = $(top_srcdir)/version.h |
11 | | |
12 | 10 | ACLOCAL_AMFLAGS = -I m4 |
13 | | |
14 | | CONFIG_STATUS_DEPENDENCIES = $(top_srcdir)/version.h |
15 | | |
16 | | .PHONY: update-version |
17 | | |
18 | | update-version: |
19 | | @if test -x $(top_srcdir)/maint/version.sh; then \ |
20 | | $(top_srcdir)/maint/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \ |
21 | | else \ |
22 | | echo "File not found: $(top_srcdir)/maint/version.sh"; \ |
23 | | fi |
24 | | |
25 | | $(top_srcdir)/version.h: update-version |
diff --git a/autogen.sh b/autogen.sh
index ffb01cf..b9174ba 100755
a
|
b
|
test -f configure || \ |
85 | 85 | ) || exit 1 |
86 | 86 | |
87 | 87 | if test -x $srcdir/configure.mc; then |
88 | | $srcdir/configure.mc "$@" |
| 88 | $srcdir/configure.mc "$@" || exit 1 |
89 | 89 | fi |
| 90 | |
| 91 | maint/version.sh |
diff --git a/maint/version.sh b/maint/version.sh
index 4df9489..97bd976 100755
a
|
b
|
VERSION_FILE=${src_top_dir}/version.h |
23 | 23 | |
24 | 24 | pushd ${src_top_dir} &>/dev/null |
25 | 25 | git_head=$(git rev-parse --verify HEAD 2>/dev/null) |
26 | | [ -z "${git_head}" ] && exit |
| 26 | [ -z "${git_head}" ] && echo "Must be run in the git tree" && exit 1 |
27 | 27 | |
28 | 28 | new_version="$(git describe 2>/dev/null)" |
29 | | [ -z "${new_version}" ] && exit |
| 29 | [ -z "${new_version}" ] && echo "Must be run in the git tree" && exit 1 |
30 | 30 | popd &>/dev/null |
31 | 31 | |
32 | 32 | |