fix comment
[awesome.git] / autogen.sh
blob9fde36dddeae47e8a52e7eb6b2e77c2f8fd8b530
1 #!/bin/sh
3 # Change to source tree
4 srcdir=`dirname "$0"`
5 [ -z "$srcdir" ] || cd "$srcdir"
7 # sed program
8 SED=${SED-sed}
10 # Check whether the version needs to be updated from git infos
11 if [ -d ".git" ] && [ -d "autom4te.cache" ]; then
12 git_describe=`git describe 2>/dev/null || echo devel`
13 for f in autom4te.cache/output.*; do
14 [ -f "$f" ] || continue
15 pkg_ver=`${SED} -n "s/^PACKAGE_VERSION='\(.*\)'\$/\1/p" "$f"`
16 [ "x$pkg_ver" = "x$git_describe" ] || rm -rf "autom4te.cache"
17 done
20 echo "Generating configure files... may take a while."
22 autoreconf --install --force && \
23 echo "Preparing was successful if there was no error messages above." && \
24 echo "Now type:" && \
25 echo " ./configure && make" && \
26 echo "Run './configure --help' for more information"