Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
23455b35
Commit
23455b35
authored
May 24, 2003
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ./toolbox: we no longer translate the Borland plugin.
parent
30fedfba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
toolbox
toolbox
+8
-8
No files found.
toolbox
View file @
23455b35
#! /bin/sh
## toolbox for the VLC media player
## $Id: toolbox,v 1.2
4 2003/05/15 15:50:22
sam Exp $
## $Id: toolbox,v 1.2
5 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment