www.nico.schottelius.org/software/gpm/browse_source/gpm-1.20.5/autogen.sh
Nico Schottelius 95a46c5577 import gpm from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-10-08 22:52:35 +02:00

26 lines
610 B
Bash

#!/bin/sh -e
set -x
[ -d config ] || mkdir config
#
# Generate version in m4 format, because the following two in acinclude.m4
# do not work:
#
# revgit="`cat $srcdir/.gitversion`"
# m4_define([AC_PACKAGE_VERSION], [$revgit])
#
# and
# m4_define([AC_PACKAGE_VERSION], include(.gitversion))
#
version="$(git-describe)"
date="$(date +%Y%m%d\ %T\ %z)"
echo "define([AC_PACKAGE_VERSION], [${version} ${date}])" > .gitversion.m4
echo "${version}" > .gitversion
echo "${date}" > .releasedate
${ACLOCAL-aclocal} -I config
${LIBTOOLIZE-libtoolize} --force --copy
${AUTOHEADER-autoheader}
${AUTOCONF-autoconf}