Commit 55bfbe3c authored by Sam Hocevar's avatar Sam Hocevar

* ./toolbox: toolbox --update.po now updates po/POTFILES.in as well.

parent 83e8c2cc
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
#! /bin/sh
## toolbox for the VLC media player
## $Id: toolbox,v 1.23 2003/04/14 23:10:20 sam Exp $
## $Id: toolbox,v 1.24 2003/05/15 15:50:22 sam Exp $
##
## Authors: Samuel Hocevar <sam@zoy.org>
......@@ -328,6 +328,15 @@ then
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
echo "" >> po/POTFILES.in
echo "# main sources" >> po/POTFILES.in
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
# clean old potfiles
cd po
rm -f vlc.pot
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment