2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:17:57 +05:30
|
|
|
LINGUAS = fr pl ru sv
|
2007-10-07 17:17:33 +05:30
|
|
|
|
2007-10-07 17:15:14 +05:30
|
|
|
# subdirectories for translated manual pages
|
2007-10-07 17:17:57 +05:30
|
|
|
DIST_SUBDIRS = cs de es fi fr hu id it ja ko pl pt_BR ru sv tr zh_CN zh_TW
|
2007-10-07 17:17:22 +05:30
|
|
|
if USE_NLS
|
|
|
|
SUBDIRS = $(DIST_SUBDIRS)
|
|
|
|
else
|
|
|
|
SUBDIRS =
|
|
|
|
endif
|
2007-10-07 17:15:14 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
man_XMANS = \
|
|
|
|
chage.1.xml \
|
|
|
|
chfn.1.xml \
|
2007-10-07 17:17:33 +05:30
|
|
|
chgpasswd.8.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
chpasswd.8.xml \
|
|
|
|
chsh.1.xml \
|
|
|
|
expiry.1.xml \
|
|
|
|
faillog.5.xml \
|
|
|
|
faillog.8.xml \
|
|
|
|
gpasswd.1.xml \
|
|
|
|
groupadd.8.xml \
|
|
|
|
groupdel.8.xml \
|
|
|
|
groupmems.8.xml \
|
|
|
|
groupmod.8.xml \
|
|
|
|
groups.1.xml \
|
|
|
|
grpck.8.xml \
|
|
|
|
gshadow.5.xml \
|
|
|
|
lastlog.8.xml \
|
|
|
|
limits.5.xml \
|
|
|
|
login.1.xml \
|
|
|
|
login.access.5.xml \
|
|
|
|
login.defs.5.xml \
|
|
|
|
logoutd.8.xml \
|
2007-10-07 17:17:01 +05:30
|
|
|
newgrp.1.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
newusers.8.xml \
|
2007-10-07 17:17:22 +05:30
|
|
|
nologin.8.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
passwd.1.xml \
|
|
|
|
passwd.5.xml \
|
|
|
|
porttime.5.xml \
|
|
|
|
pwck.8.xml \
|
|
|
|
pwconv.8.xml \
|
|
|
|
shadow.3.xml \
|
|
|
|
shadow.5.xml \
|
2007-10-07 17:17:01 +05:30
|
|
|
sg.1.xml \
|
2007-10-07 17:16:16 +05:30
|
|
|
su.1.xml \
|
|
|
|
suauth.5.xml \
|
|
|
|
useradd.8.xml \
|
|
|
|
userdel.8.xml \
|
|
|
|
usermod.8.xml \
|
|
|
|
vipw.8.xml
|
|
|
|
|
2007-10-07 17:14:38 +05:30
|
|
|
man_MANS = \
|
2007-10-07 17:18:07 +05:30
|
|
|
$(man_nopam) \
|
2007-10-07 17:14:38 +05:30
|
|
|
chage.1 \
|
|
|
|
chfn.1 \
|
2007-10-07 17:17:33 +05:30
|
|
|
chgpasswd.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
chpasswd.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
chsh.1 \
|
2007-10-07 17:14:51 +05:30
|
|
|
expiry.1 \
|
2007-10-07 17:14:38 +05:30
|
|
|
faillog.5 \
|
|
|
|
faillog.8 \
|
2007-10-07 17:15:40 +05:30
|
|
|
getspnam.3 \
|
2007-10-07 17:14:51 +05:30
|
|
|
gpasswd.1 \
|
2007-10-07 17:14:38 +05:30
|
|
|
groupadd.8 \
|
|
|
|
groupdel.8 \
|
2007-10-07 17:17:57 +05:30
|
|
|
groupmems.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
groupmod.8 \
|
2007-10-07 17:15:23 +05:30
|
|
|
groups.1 \
|
2007-10-07 17:14:51 +05:30
|
|
|
grpck.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
grpconv.8 \
|
|
|
|
grpunconv.8 \
|
2007-10-07 17:16:07 +05:30
|
|
|
gshadow.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
lastlog.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
login.1 \
|
|
|
|
login.defs.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
logoutd.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
newgrp.1 \
|
2007-10-07 17:14:38 +05:30
|
|
|
newusers.8 \
|
2007-10-07 17:17:22 +05:30
|
|
|
nologin.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
passwd.1 \
|
|
|
|
passwd.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
pwck.8 \
|
|
|
|
pwconv.8 \
|
2007-10-07 17:14:51 +05:30
|
|
|
pwunconv.8 \
|
2007-10-07 17:14:59 +05:30
|
|
|
sg.1 \
|
2007-10-07 17:15:40 +05:30
|
|
|
shadow.3 \
|
2007-10-07 17:14:51 +05:30
|
|
|
shadow.5 \
|
|
|
|
su.1 \
|
|
|
|
suauth.5 \
|
2007-10-07 17:14:38 +05:30
|
|
|
useradd.8 \
|
|
|
|
userdel.8 \
|
|
|
|
usermod.8 \
|
2007-10-07 17:14:59 +05:30
|
|
|
vigr.8 \
|
2007-10-07 17:14:38 +05:30
|
|
|
vipw.8
|
2007-10-07 17:14:02 +05:30
|
|
|
|
2007-10-07 17:18:07 +05:30
|
|
|
man_nopam = \
|
|
|
|
limits.5 \
|
|
|
|
login.access.5 \
|
|
|
|
porttime.5
|
|
|
|
|
|
|
|
if !USE_PAM
|
|
|
|
man_MANS += $(man_nopam)
|
|
|
|
endif
|
|
|
|
|
2007-10-07 17:17:33 +05:30
|
|
|
EXTRA_DIST = \
|
|
|
|
$(man_MANS) \
|
2007-10-07 17:16:16 +05:30
|
|
|
$(man_XMANS) \
|
2007-10-07 17:18:07 +05:30
|
|
|
$(man_nopam) \
|
2007-10-07 17:16:25 +05:30
|
|
|
id.1 \
|
2007-10-07 17:16:16 +05:30
|
|
|
id.1.xml \
|
2007-10-07 17:16:25 +05:30
|
|
|
sulogin.8 \
|
|
|
|
sulogin.8.xml
|
2007-10-07 17:16:16 +05:30
|
|
|
|
2007-10-07 17:17:01 +05:30
|
|
|
if ENABLE_REGENERATE_MAN
|
|
|
|
|
|
|
|
chage.1: chage.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
chfn.1: chfn.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:33 +05:30
|
|
|
|
|
|
|
chgpasswd.8: chgpasswd.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
chpasswd.8: chpasswd.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
chsh.1: chsh.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
expiry.1: expiry.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
faillog.5: faillog.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
faillog.8: faillog.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
gpasswd.1: gpasswd.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
groupadd.8: groupadd.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
groupdel.8: groupdel.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
groupmems.8: groupmems.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
groupmod.8: groupmod.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
groups.1: groups.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
grpck.8: grpck.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
gshadow.5: gshadow.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
id.1: id.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
lastlog.8: lastlog.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
limits.5: limits.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
login.1: login.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
login.access.5: login.access.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
login.defs.5: login.defs.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
logoutd.8: logoutd.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
newgrp.1: newgrp.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
newusers.8: newusers.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:22 +05:30
|
|
|
|
|
|
|
nologin.8: nologin.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
passwd.1: passwd.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
passwd.5: passwd.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
porttime.5: porttime.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
pwck.8: pwck.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
grpconv.8 grpunconv.8 pwconv.8 pwunconv.8: pwconv.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
shadow.3 getspnam.3: shadow.3.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
shadow.5: shadow.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
sg.1: sg.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
su.1: su.1.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
sulogin.8: sulogin.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
suauth.5: suauth.5.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
useradd.8: useradd.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
userdel.8: userdel.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
usermod.8: usermod.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
|
|
|
vigr.8 vipw.8: vipw.8.xml
|
2007-10-07 17:17:45 +05:30
|
|
|
$(XSLTPROC) -nonet http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl $<
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:17:45 +05:30
|
|
|
CLEANFILES = $(man_MANS) $(ALL_TRANSLATED_XMLS)
|
2007-10-07 17:17:33 +05:30
|
|
|
|
|
|
|
POFILES = $(foreach lang, $(LINGUAS), $(lang)/$(lang).po)
|
|
|
|
ALL_TRANSLATED_XMLS = $(foreach dir, $(LINGUAS), $(foreach xmlfile, $(man_XMANS), $(dir)/$(xmlfile)))
|
|
|
|
|
2007-10-07 17:17:45 +05:30
|
|
|
all: $(POFILES) $(ALL_TRANSLATED_XMLS)
|
2007-10-07 17:17:33 +05:30
|
|
|
|
|
|
|
gen-xmls: $(ALL_TRANSLATED_XMLS)
|
|
|
|
|
2007-10-07 17:17:45 +05:30
|
|
|
$(ALL_TRANSLATED_XMLS): $(man_XMANS)
|
2007-10-07 17:17:33 +05:30
|
|
|
xml2po -l $(strip $(subst /,, $(dir $@))) -p $(strip $(subst /,, $(dir $@)))/$(strip $(subst /,, $(dir $@))).po -o $@ $(notdir $@)
|
2007-10-07 17:17:45 +05:30
|
|
|
sed -i 's:\(^<refentry .*\)>:\1 lang="$(strip $(subst /,, $(dir $@)))">:' $@
|
2007-10-07 17:17:33 +05:30
|
|
|
|
2007-10-07 17:17:45 +05:30
|
|
|
$(POFILES): shadow-man-pages.pot
|
2007-10-07 17:17:33 +05:30
|
|
|
|
|
|
|
shadow-man-pages.pot: $(man_XMANS)
|
|
|
|
|
|
|
|
dist-hook: dist-po-files
|
|
|
|
|
|
|
|
.PHONY: dist-po-files
|
|
|
|
dist-po-files: $(POFILES) shadow-man-pages.pot
|
|
|
|
@for lang in $(LINGUAS); do \
|
|
|
|
echo " $(mkinstalldirs) $(distdir)/$$lang"; \
|
|
|
|
$(mkinstalldirs) "$(distdir)/$$lang"; \
|
|
|
|
done
|
|
|
|
@for file in $(POFILES); do \
|
|
|
|
echo "$(INSTALL_DATA) $(srcdir)/$$file $(distdir)/$$file"; \
|
|
|
|
$(INSTALL_DATA) "$(srcdir)/$$file" "$(distdir)/$$file"; \
|
|
|
|
done
|
|
|
|
$(INSTALL_DATA) "$(srcdir)/shadow-man-pages.pot" "$(distdir)/shadow-man-pages.pot"
|
|
|
|
|
|
|
|
shadow-man-pages.pot: $(man_XMANS)
|
|
|
|
xml2po -o $@ $(man_XMANS)
|
|
|
|
|
|
|
|
.PHONY: update-po
|
|
|
|
update-po: shadow-man-pages.pot
|
|
|
|
@for lang in $(LINGUAS); do \
|
|
|
|
echo "$$lang:"; \
|
|
|
|
echo "$(MSGMERGE) -o $$lang/$$lang.po $$lang/$$lang.po shadow-man-pages.pot"; \
|
|
|
|
$(MSGMERGE) -o $$lang/$$lang.po $$lang/$$lang.po shadow-man-pages.pot; \
|
|
|
|
done
|
2007-10-07 17:17:45 +05:30
|
|
|
|
|
|
|
else
|
|
|
|
$(man_MANS):
|
|
|
|
@echo ""
|
|
|
|
@echo "Error: you need to run configure with '--enable-man'"
|
|
|
|
@echo " in order to regenerate man pages."
|
|
|
|
@echo ""
|
|
|
|
@false
|
|
|
|
endif
|