autogen.sh.in: fix for modules that have no po/ directory
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 18 Jun 2013 12:04:20 +0000 (13:04 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 18 Jun 2013 12:04:20 +0000 (13:04 +0100)
autogen.sh.in

index dae5f7f..5a1da2d 100755 (executable)
@@ -79,12 +79,14 @@ toplevel_check $srcfile
 
 # autopoint
 #    first remove patch if necessary, then run autopoint, then reapply
-if test -f po/Makefile.in.in;
-then
-  patch -p0 -R --forward < common/gettext.patch
+if test -d po ; then
+  if test -f po/Makefile.in.in;
+  then
+    patch -p0 -R --forward < common/gettext.patch
+  fi
+  tool_run "$autopoint" "--force" "patch -p0 < common/gettext.patch"
+  patch -p0 < common/gettext.patch
 fi
-tool_run "$autopoint" "--force" "patch -p0 < common/gettext.patch"
-patch -p0 < common/gettext.patch
 
 # aclocal
 if test -f acinclude.m4; then rm acinclude.m4; fi