Permalink
Browse files

Updated autogen.sh to find intltool and initialize it

  • Loading branch information...
1 parent 93e0779 commit ab77642fc4ea52a0c0121634866f06f42ffb88af @manish manish committed Sep 18, 2011
Showing with 12 additions and 0 deletions.
  1. +12 −0 autogen.sh
View
@@ -109,6 +109,15 @@ if test $? -eq 9; then
exit 1
fi
+intltoolize_version=`xbuild /version | grep '^Mono' | egrep -o '([0-9]+\.?){2,}'`
+check_version "$intltoolize_version" "0.35" 2> /dev/null
+if test $? -eq 9; then
+ echo
+ echo "A newer version of intltoolize is required to run $PROJECT ( >= 0.35 )"
+ exit 1
+fi
+
+
#Check directoy
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
@@ -117,6 +126,9 @@ ORIGDIR=`pwd`
cd $srcdir
TEST_TYPE=-f
aclocalinclude="-I . $ACLOCAL_FLAGS"
+
+echo "Running intltoolize"
+intltoolize --copy --force --automake
test $TEST_TYPE $FILE || {
echo "You must run this script in the top-level $PROJECT directory"

0 comments on commit ab77642

Please sign in to comment.