Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
net-tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
net-tools
Commits
8003503a
Commit
8003503a
authored
Jan 01, 2010
by
Mike Frysinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
po/man: if LINGUAS is set, only install translations for those langs
parent
0b2d0378
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
13 deletions
+24
-13
man/Makefile
man/Makefile
+8
-3
po/Makefile
po/Makefile
+16
-10
No files found.
man/Makefile
View file @
8003503a
...
...
@@ -29,9 +29,14 @@ mandir=/usr/share/man
-include
../config.make
ifeq
($(I18N),1)
LANGS
=
`
ls
-d
*
|
grep
-v
Makefile
`
ALL_LANGS
=
$(
filter-out
Makefile,
$(
wildcard
*
))
ifeq
($(LINGUAS),)
LANGS
=
$(ALL_LANGS)
else
LANGS
=
en_US
LANGS
=
$(
sort
$(
filter
$(LINGUAS)
,
$(ALL_LANGS)
)
en_US
)
endif
else
LANGS
=
en_US
endif
all
:
...
...
@@ -43,7 +48,7 @@ clean:
clobber
:
clean
install
:
LANGS
=
$(LANGS)
;
\
LANGS
=
'
$(LANGS)
'
;
\
for
LANG
in
$$
LANGS
;
do
\
cd
$$
LANG
;
\
for
SECTION
in
1 5 8
;
do
\
...
...
po/Makefile
View file @
8003503a
...
...
@@ -8,12 +8,19 @@ TUPDATE = msgmerge
NLSPACKAGE
=
net-tools
-include
../config.make
ALL_CATALOGS
=
de.mo fr.mo pt_BR.mo et_EE.mo cs.mo
ALL_POS
=
$(
wildcard
*
.po
)
ALL_LANGS
=
$(ALL_POS:%.po=%)
ALL_CATALOGS
=
$(ALL_LANGS:%=%.mo)
ifeq
($(I18N),1)
CATALOGS
=
$(ALL_CATALOGS)
ifeq
($(LINGUAS),)
LANGS
=
$(ALL_LANGS)
else
CATALOGS
=
LANGS
=
$(
filter
$(LINGUAS)
,
$(ALL_LANGS)
)
endif
else
LANGS
=
endif
CATALOGS
=
$(LANGS:%=%.mo)
POTFILES
=
../arp.c ../hostname.c ../ifconfig.c ../netstat.c ../rarp.c
\
../route.c ../plipconfig.c ../iptunnel.c ../statistics.c
\
...
...
@@ -45,9 +52,9 @@ $(NLSPACKAGE).pot: $(POTFILES)
update-po
:
Makefile
$(MAKE)
$(NLSPACKAGE)
.pot
catalogs
=
'
$(CATALO
GS)
'
;
\
for
cat
in
$$
catalo
gs
;
do
\
lang
=
`
echo
$$
cat
|
sed
's/.mo//'
`
;
\
langs
=
'
$(ALL_LAN
GS)
'
;
\
for
lang
in
$$
lan
gs
;
do
\
cat
=
$$
lang.mo
;
\
mv
$$
lang.po
$$
lang.old.po
;
\
echo
"
$$
lang:"
;
\
if
$(TUPDATE)
$$
lang.old.po
$(NLSPACKAGE)
.pot
>
$$
lang.po
;
then
\
...
...
@@ -70,12 +77,11 @@ distclean: clean
depend
:
install
:
$(CATALOGS)
catalogs
=
'
$(CATALOGS)
'
;
\
for
n
in
$$
catalogs
;
do
\
l
=
`
basename
$$
n .mo
`
;
\
langs
=
'
$(LANGS)
'
;
\
for
l
in
$$
langs
;
do
\
$(INSTALL)
-m
755
-d
$(INSTALLNLSDIR)
/
$$
l
;
\
$(INSTALL)
-m
755
-d
$(INSTALLNLSDIR)
/
$$
l/LC_MESSAGES
;
\
$(INSTALL)
-m
644
$$
n
$(INSTALLNLSDIR)
/
$$
l/LC_MESSAGES/net-tools.mo
;
\
$(INSTALL)
-m
644
$$
l.mo
$(INSTALLNLSDIR)
/
$$
l/LC_MESSAGES/net-tools.mo
;
\
done
%.mo
:
%.po
...
...
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