diff options
author | Stef Walter <stefw@collabora.co.uk> | 2011-10-29 07:48:54 +0200 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-10-29 07:48:54 +0200 |
commit | 0792fefb2bc9d5db038b48855f0b1bb138653332 (patch) | |
tree | 07f96de41db66abd7e7c3382b0d4ff02cea24a33 | |
parent | 969bcab592878322e410f4342a61fccc06b9addd (diff) |
Handle build case when gettextize is not available or not installed
-rwxr-xr-x | autogen.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -12,10 +12,16 @@ fi set -x +gettextize=$(which gettextize) +if test -z "$gettextize"; then + echo "Couldn't find gettextize" >&2 + exit 1 +fi + # Copied from avahi's autogen.sh to work around gettext braindamage rm -f Makefile.am~ configure.ac~ # Evil, evil, evil, evil hack -sed 's/read dummy/\#/' `which gettextize` | sh -s -- --copy --force --no-changelog +sed 's/read dummy/\#/' $gettextize | sh -s -- --copy --force --no-changelog test -f Makefile.am~ && mv Makefile.am~ Makefile.am test -f configure.ac~ && mv configure.ac~ configure.ac |