]> git.sesse.net Git - vlc/commitdiff
* ./toolbox: we no longer translate the Borland plugin.
authorSam Hocevar <sam@videolan.org>
Sat, 24 May 2003 12:34:31 +0000 (12:34 +0000)
committerSam Hocevar <sam@videolan.org>
Sat, 24 May 2003 12:34:31 +0000 (12:34 +0000)
toolbox

diff --git a/toolbox b/toolbox
index 31b83e63087ed70a9d658e555d5934b6d51a537f..07ad1707f5a3b47302a923ad0587a5b20861f05a 100755 (executable)
--- a/toolbox
+++ b/toolbox
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 ##  toolbox for the VLC media player
-##  $Id: toolbox,v 1.24 2003/05/15 15:50:22 sam Exp $
+##  $Id: toolbox,v 1.25 2003/05/24 12:34:31 sam Exp $
 ##
 ##  Authors: Samuel Hocevar <sam@zoy.org>
 
@@ -322,12 +322,12 @@ if test "${action}" = "po"
 then
   # create a fake file containing win32 strings
   rm -f modules/gui/win32/strings.cpp
-  printf "/* Automatically generated by 'toolbox --update-po', please don't compile */\n" > modules/gui/win32/strings.cpp
-  find modules/gui/win32 -name '*.dfm' | while read file
-  do
-    printf "\n/*\n * from $file:\n */\n\n" >> modules/gui/win32/strings.cpp
-    perl -ne 'chop; chop; if( / (Caption|Text|Hint) / || $buffer =~ /[+=] *$/ ) { $buffer =~ s/\+ *$//; $buffer .= $_; } if( $buffer =~ /'"'"' *$/) { $buffer =~ s/'"'"'/"/g; $buffer =~ s/\\/\\\\/g; $buffer =~ s/=/= _(/; print $buffer." );\n"; $buffer = "";}' < $file | grep -v '"-*"' | grep -v '"http://' | grep -v '"vlcs"' >> modules/gui/win32/strings.cpp || exit 1
-  done
+  #printf "/* Automatically generated by 'toolbox --update-po', please don't compile */\n" > modules/gui/win32/strings.cpp
+  #find modules/gui/win32 -name '*.dfm' | while read file
+  #do
+  #  printf "\n/*\n * from $file:\n */\n\n" >> modules/gui/win32/strings.cpp
+  #  perl -ne 'chop; chop; if( / (Caption|Text|Hint) / || $buffer =~ /[+=] *$/ ) { $buffer =~ s/\+ *$//; $buffer .= $_; } if( $buffer =~ /'"'"' *$/) { $buffer =~ s/'"'"'/"/g; $buffer =~ s/\\/\\\\/g; $buffer =~ s/=/= _(/; print $buffer." );\n"; $buffer = "";}' < $file | grep -v '"-*"' | grep -v '"http://' | grep -v '"vlcs"' >> modules/gui/win32/strings.cpp || exit 1
+  #done
   # find out the source files
   rm -f po/POTFILES.in
   echo "# automatically created by toolbox --update-po" > po/POTFILES.in
@@ -336,7 +336,7 @@ then
   find include src -name '*.[chm]' -o -name '*.[hc]pp' | sort >> po/POTFILES.in
   echo "" >> po/POTFILES.in
   echo "# modules" >> po/POTFILES.in
-  find modules -name '*.[chm]' -o -name '*.[hc]pp' | sort >> po/POTFILES.in
+  find modules -name '*.[chm]' -o -name '*.[hc]pp' | grep -v 'gui/win32/' | sort >> po/POTFILES.in
   # clean old potfiles
   cd po
   rm -f vlc.pot