Fix macosx gettext
authorVideoLAN <videolan@jones.via.ecp.fr>
Sun, 23 Mar 2008 18:57:58 +0000 (19:57 +0100)
committerRafaël Carré <funman@videolan.org>
Sun, 23 Mar 2008 19:08:20 +0000 (19:08 +0000)
Default to no backup when updating po files

extras/contrib/src/Makefile
extras/contrib/src/Patches/gettext-macosx.patch [new file with mode: 0644]

index 0a65285..6289900 100644 (file)
@@ -366,6 +366,9 @@ gettext: gettext-$(GETTEXT_VERSION).tar.gz
 ifdef HAVE_WIN32
        patch -p0 < Patches/gettext-win32.patch
 endif
+ifdef HAVE_DARWIN_OS
+       patch -p0 < Patches/gettext-macosx.patch
+endif
 
 .intl: gettext .iconv
 ifdef HAVE_WIN32
diff --git a/extras/contrib/src/Patches/gettext-macosx.patch b/extras/contrib/src/Patches/gettext-macosx.patch
new file mode 100644 (file)
index 0000000..214fb3d
--- /dev/null
@@ -0,0 +1,11 @@
+--- gettext/gettext-tools/src/msgmerge.c.orig  2007-10-21 03:25:52.000000000 +0200
++++ gettext/gettext-tools/src/msgmerge.c       2008-03-23 19:54:36.000000000 +0100
+@@ -96,7 +96,7 @@
+ /* Update mode.  */
+ static bool update_mode = false;
+-static const char *version_control_string;
++static const char *version_control_string = "none";
+ static const char *backup_suffix_string;
+ /* Long options.  */