autogen.sh.in: only touch .pot file if there's a po directory
authorTim-Philipp Müller <tim@centricular.net>
Sun, 14 Apr 2013 14:37:21 +0000 (15:37 +0100)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 14 Apr 2013 16:12:43 +0000 (17:12 +0100)
autogen.sh.in

index c303a32..3f91cd6 100755 (executable)
@@ -34,7 +34,9 @@ fi
 
 # GNU gettext automake support doesn't get along with git.
 # https://bugzilla.gnome.org/show_bug.cgi?id=661128
-touch -t 200001010000 po/@PACKAGE@-@API_VERSION@.pot
+if test -d po ; then
+  touch -t 200001010000 po/@PACKAGE@-@API_VERSION@.pot
+fi
 
 CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-failing-tests --enable-poisoning --enable-gtk-doc --enable-docbook'