simply ignore XSetInputFocus errors
[awesome.git] / autogen.sh
blob88f7b9bdae3e4835fc3c75fe5f2370361020b538
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 # If GIT_DIR is set, use it. If not, try ".git".
11 if test -n "$GIT_DIR"; then :;
12 else GIT_DIR=".git"; export GIT_DIR
15 # Check whether the version needs to be updated from VCS/version-stamp
16 if [ -d "$GIT_DIR" ] && [ -d "autom4te.cache" ]; then
17 git_describe=`./build-utils/package-version . version-stamp`
18 for f in autom4te.cache/output.*; do
19 [ -f "$f" ] || continue
20 pkg_ver=`${SED} -n "s/^PACKAGE_VERSION='\(.*\)'\$/\1/p" "$f"`
21 if [ "x$pkg_ver" = "x$git_describe" ]
22 then :
23 else
24 echo "Cleaning out autom4te.cache (${pkg_ver} -> ${git_describe})"
25 rm -rf "autom4te.cache"
26 break
28 done
31 echo "Generating configure files... may take a while."
33 autoreconf --install --force && \
34 echo "Preparing was successful if there was no error messages above." && \
35 echo "Now type:" && \
36 echo " ./configure && make" && \
37 echo "Run './configure --help' for more information"