awesome/autogen.sh

27 lines
783 B
Bash
Raw Normal View History

2008-01-05 11:35:00 +01:00
#!/bin/sh
# Change to source tree
srcdir=`dirname "$0"`
[ -z "$srcdir" ] || cd "$srcdir"
# sed program
SED=${SED-sed}
# Check whether the version needs to be updated from git infos
if [ -d ".git" ] && [ -d "autom4te.cache" ]; then
git_describe=`git describe 2>/dev/null || echo devel`
for f in autom4te.cache/output.*; do
[ -f "$f" ] || continue
pkg_ver=`${SED} -n "s/^PACKAGE_VERSION='\(.*\)'\$/\1/p" "$f"`
[ "x$pkg_ver" = "x$git_describe" ] || rm -rf "autom4te.cache"
done
fi
2008-01-05 11:35:00 +01:00
echo "Generating configure files... may take a while."
autoreconf --install --force && \
echo "Preparing was successful if there was no error messages above." && \
echo "Now type:" && \
echo " ./configure && make" && \
echo "Run './configure --help' for more information"