forked from telmich/gpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathautogen.sh
More file actions
executable file
·28 lines (21 loc) · 769 Bytes
/
Copy pathautogen.sh
File metadata and controls
executable file
·28 lines (21 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
[ -d config ] || mkdir config
version=$(git describe 2>/dev/null)
# No git? use changelog information
if [ -z "$version" ]; then
version=$(grep '^[[:digit:]]' doc/changelog | head -n1 | cut -d: -f1)
date=$(grep '^[[:digit:]]' doc/changelog | head -n1 | cut -d: -f2)
else
date=$(git log -1 --pretty="format:%ai" "$version")
fi
cat << eof > configure.ac
AC_INIT([gpm],[$version],[http://www.nico.schottelius.org/software/gpm/])
releasedate="$date"
release="$version"
eof
cat configure.ac.footer >> configure.ac
${ACLOCAL-aclocal} -I config
${LIBTOOLIZE-libtoolize} -n --install 2>/dev/null && LIBTOOL_FLAGS="--install" || LIBTOOL_FLAGS=""
${LIBTOOLIZE-libtoolize} --force --copy ${LIBTOOL_FLAGS}
${AUTOHEADER-autoheader}
${AUTOCONF-autoconf}