patch for AM_PROG_INTLTOOL/AM_PROG_XML_I18N_TOOLS



[please CC replies to cactus cactus rulez org]

so I've modified intltool.m4 and xml-i18n-tools.m4 to sed-ate the Intltool
[] tags out from po/POTFILES. OK to check it in?



-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus cactus rulez org =---'
'Two beer or not two beer?'-Shakesbeer


Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/intltool/ChangeLog,v
retrieving revision 1.184
diff -u -u -r1.184 ChangeLog
--- ChangeLog	2002/01/22 16:27:03	1.184
+++ ChangeLog	2002/01/24 17:06:47
@@ -1,3 +1,7 @@
+2002-01-24  ERDI Gergo  <cactus cactus rulez org>
+
+	* intltool.m4: Remove intltool [] tags from POTFILES 
+
 2002-01-22  Darin Adler  <darin bentspoon com>
 
 	* intltool-merge.in.in: Don't use NDBM_File unless the
Index: intltool.m4
===================================================================
RCS file: /cvs/gnome/intltool/intltool.m4,v
retrieving revision 1.33
diff -u -u -r1.33 intltool.m4
--- intltool.m4	2002/01/07 05:49:32	1.33
+++ intltool.m4	2002/01/24 17:06:47
@@ -66,6 +66,15 @@
    AC_MSG_ERROR([perl 5.x required for intltool])
 fi
 
+# Remove Intltool [] tags from po/POTFILES
+AC_OUTPUT_COMMANDS_PRE([
+	changequote(,)
+	mv -f po/POTFILES po/POTFILES.tmp
+	sed -e 's/\[.*\] +//' < po/POTFILES.tmp > po/POTFILES
+	rm -f po/POTFILES.tmp
+	changequote([,])
+])
+
 dnl manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT
 
 AC_OUTPUT_COMMANDS([
Index: xml-i18n-tools.m4
===================================================================
RCS file: /cvs/gnome/intltool/xml-i18n-tools.m4,v
retrieving revision 1.31
diff -u -u -r1.31 xml-i18n-tools.m4
--- xml-i18n-tools.m4	2001/10/04 19:58:43	1.31
+++ xml-i18n-tools.m4	2002/01/24 17:06:47
@@ -73,6 +73,15 @@
    AC_MSG_ERROR([perl 5.x required for xml-i18n-tools])
 fi
 
+# Remove Intltool [] tags from po/POTFILES
+AC_OUTPUT_COMMANDS_PRE([
+	changequote(,)
+	mv -f po/POTFILES po/POTFILES.tmp
+	sed -e 's/\[.*\] +//' < po/POTFILES.tmp > po/POTFILES
+	rm -f po/POTFILES.tmp
+	changequote([,])
+])
+
 dnl  manually sed perl in so people don't have to put the xml-i18n-tools scripts in their 
 dnl  AC_OUTPUT
 AC_OUTPUT_COMMANDS([


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]