Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
f7a239a5
Commit
f7a239a5
authored
Mar 01, 2016
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Generate the LINGUAS file.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0bb029f9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
61 deletions
+31
-61
configure
configure
+0
-3
configure.ac
configure.ac
+0
-1
LINGUAS
po/LINGUAS
+0
-45
make_makefiles
tools/make_makefiles
+1
-12
makedep.c
tools/makedep.c
+30
-0
No files found.
configure
View file @
f7a239a5
...
...
@@ -17246,8 +17246,6 @@ test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf fonts/symbol.tt
fi
ac_config_links
=
"
$ac_config_links
loader/l_intl.nls:loader/l_intl.nls"
test
"
$srcdir
"
=
"."
||
wine_fn_config_symlink loader/l_intl.nls
ac_config_links
=
"
$ac_config_links
po/LINGUAS:po/LINGUAS"
test
"
$srcdir
"
=
"."
||
wine_fn_config_symlink po/LINGUAS
ac_config_links
=
"
$ac_config_links
wine:tools/winewrapper"
wine_fn_config_symlink wine
if
test
"x
$enable_win64
"
!=
xno
;
then
...
...
@@ -18970,7 +18968,6 @@ do
"fonts/tahomabd.ttf") CONFIG_LINKS="
$CONFIG_LINKS
fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
"fonts/wingding.ttf") CONFIG_LINKS="
$CONFIG_LINKS
fonts/wingding.ttf:fonts/wingding.ttf" ;;
"loader/l_intl.nls") CONFIG_LINKS="
$CONFIG_LINKS
loader/l_intl.nls:loader/l_intl.nls" ;;
"po/LINGUAS") CONFIG_LINKS="
$CONFIG_LINKS
po/LINGUAS:po/LINGUAS" ;;
"wine") CONFIG_LINKS="
$CONFIG_LINKS
wine:tools/winewrapper" ;;
"wine64") CONFIG_LINKS="
$CONFIG_LINKS
wine64:tools/winewrapper" ;;
"tools/makedep") CONFIG_COMMANDS="
$CONFIG_COMMANDS
tools/makedep" ;;
...
...
configure.ac
View file @
f7a239a5
...
...
@@ -2611,7 +2611,6 @@ test -n "$CROSSTARGET" || WINE_APPEND_RULE(
WINE_CONFIG_SYMLINK(fonts,fonts,[marlett.ttf,symbol.ttf,tahoma.ttf,tahomabd.ttf,wingding.ttf],enable_fonts)
WINE_CONFIG_SYMLINK(loader,loader,[l_intl.nls])
WINE_CONFIG_SYMLINK(po,po,[LINGUAS])
WINE_CONFIG_SYMLINK(,tools,[wine],,winewrapper)
WINE_CONFIG_SYMLINK(,tools,[wine64],enable_win64,winewrapper)
...
...
po/LINGUAS
deleted
100644 → 0
View file @
0bb029f9
ar
bg
ca
cs
da
de
el
en
en_US
eo
es
fa
fi
fr
he
hi
hr
hu
it
ja
ko
lt
ml
nb_NO
nl
or
pa
pl
pt_BR
pt_PT
rm
ro
ru
sk
sl
sr_RS@cyrillic
sr_RS@latin
sv
te
th
tr
uk
wa
zh_CN
zh_TW
tools/make_makefiles
View file @
f7a239a5
...
...
@@ -55,7 +55,7 @@ my %ignored_source_files = (
"tools/makedep.c"
=>
1
,
);
my
(
@
linguas
,
@
makefiles
,
%
makefiles
);
my
(
@makefiles
,
%
makefiles
);
sub
dirname
($)
{
...
...
@@ -532,20 +532,10 @@ sub update_makefiles(@)
}
################################################################
# update the LINGUAS file
sub
update_linguas
(@)
{
replace_in_file
(
"po/LINGUAS"
,
undef
,
undef
,
join
(
"\n"
,
sort
@_
),
"\n"
);
}
my
$git_dir
=
$ENV
{
GIT_DIR
}
||
".git"
;
die
"needs to be run from a git checkout"
unless
-
d
$git_dir
;
my
@all_files
=
split
/\0/
,
`git ls-files -c -z`
;
@linguas
=
map
{
(
my
$ret
=
$_
)
=~
s/^po\/(.*)\.po/$1/
;
$ret
;
}
grep
/^po\/.*\.po$/
,
@all_files
;
@makefiles
=
map
{
(
my
$ret
=
$_
)
=~
s/\.in$//
;
$ret
;
}
grep
/Makefile.in$/
,
@all_files
;
foreach
my
$file
(
sort
@makefiles
)
...
...
@@ -555,5 +545,4 @@ foreach my $file (sort @makefiles)
}
assign_sources_to_makefiles
(
@all_files
);
update_linguas
(
@linguas
);
update_makefiles
(
@makefiles
);
tools/makedep.c
View file @
f7a239a5
...
...
@@ -2251,6 +2251,10 @@ static void output_po_files( const struct makefile *make )
output
(
": %s/wine.pot
\n
"
,
po_dir
);
output
(
"
\t
msgmerge --previous -q $@ %s/wine.pot | msgattrib --no-obsolete -o $@.new && mv $@.new $@
\n
"
,
po_dir
);
output
(
"po:"
);
for
(
i
=
0
;
i
<
linguas
.
count
;
i
++
)
output_filename
(
strmake
(
"%s/%s.po"
,
po_dir
,
linguas
.
str
[
i
]
));
output
(
"
\n
"
);
}
output
(
"%s/wine.pot:"
,
po_dir
);
output_filenames
(
pot_files
);
...
...
@@ -3212,6 +3216,27 @@ static void rename_temp_file_if_changed( const char *dest )
/*******************************************************************
* output_linguas
*/
static
void
output_linguas
(
const
struct
makefile
*
make
)
{
const
char
*
dest
=
base_dir_path
(
make
,
"LINGUAS"
);
struct
incl_file
*
source
;
output_file
=
create_temp_file
(
dest
);
output
(
"# Automatically generated by make depend; DO NOT EDIT!!
\n
"
);
LIST_FOR_EACH_ENTRY
(
source
,
&
make
->
sources
,
struct
incl_file
,
entry
)
if
(
strendswith
(
source
->
name
,
".po"
))
output
(
"%s
\n
"
,
replace_extension
(
source
->
name
,
".po"
,
""
));
if
(
fclose
(
output_file
))
fatal_perror
(
"write"
);
output_file
=
NULL
;
rename_temp_file_if_changed
(
dest
);
}
/*******************************************************************
* output_testlist
*/
static
void
output_testlist
(
const
struct
makefile
*
make
)
...
...
@@ -3333,6 +3358,11 @@ static void output_dependencies( const struct makefile *make )
output_testlist
(
make
);
strarray_add
(
&
ignore_files
,
"testlist.c"
);
}
if
(
make
->
base_dir
&&
!
strcmp
(
make
->
base_dir
,
"po"
))
{
output_linguas
(
make
);
strarray_add
(
&
ignore_files
,
"LINGUAS"
);
}
strarray_addall
(
&
ignore_files
,
targets
);
if
(
!
make
->
src_dir
)
output_gitignore
(
base_dir_path
(
make
,
".gitignore"
),
ignore_files
);
...
...
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