The version is set in stone before the 'make dist' run.
In the cases where no .git directory is found, like generated
tarballs, the stone is summoned instead.
/TAGS
/tools/Makefile
/tools/Makefile.in
+/version
claws-mail.desktop \
claws-mail.png \
autogen.sh \
- claws-features.h.in
+ claws-features.h.in \
+ version.in \
+ version
# hicolor icon theme, base class of all icon themes
pixmapdir=$(datadir)/icons/hicolor/48x48/apps
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
-GIT_VERSION=`git describe --abbrev=6 --dirty --always`
+if test \( -d .git \); then
+ GIT_VERSION=`git describe --abbrev=6 --dirty --always`
+else
+ GIT_VERSION=`sh -c '. ./version'`
+fi
MAJOR_VERSION=`echo $GIT_VERSION | awk -F. '{print $1}'`
MINOR_VERSION=`echo $GIT_VERSION | awk -F. '{print $2}'`
MICRO_VERSION=`echo $GIT_VERSION | awk -F- '{print $1}' | awk -F. '{print $3}'`
manual/de/dist/html/Makefile
manual/de/dist/txt/Makefile
claws-mail.pc
+version
])
dnl Output the configuration summary
--- /dev/null
+echo "@GIT_VERSION@"