forked from slicer69/sysvinit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Applied patches from Mark Hindley to clean up man page
Makefile, translations and installs of new man pages.
- Loading branch information
Jesse
committed
May 9, 2022
1 parent
746b0fc
commit 08810d7
Showing
4 changed files
with
29 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,25 +3,26 @@ killall5.8 last.1 lastb.1 logsave.8 mesg.1 mountpoint.1 pidof.8 poweroff.8 \ | |
readbootlog.1 reboot.8 runlevel.8 shutdown.8 sulogin.8 telinit.8 utmpdump.1 \ | ||
wall.1 | ||
|
||
LANGUAGES_DIST =`sed -ne 's/^.*\[po4a_langs\] \(.*\)$/\1/p' po/po4a.cfg` | ||
LANGUAGES=$(LANGUAGES_DIST) | ||
LANGUAGES=de es fi fr hu id pl | ||
LANGUAGES=$(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' po/po4a.cfg) | ||
|
||
VERSION?=1.2.3 | ||
PO4A := $(shell command -v po4a 2> /dev/null) | ||
PO4A_OPTS = --previous --srcdir po/ --destdir ./ --no-backups --stamp \ | ||
--package-name sysvinit --package-version $(VERSION) | ||
|
||
PO4A_OPTS = --previous --srcdir po/ --destdir po/ --no-backups \ | ||
--package-name sysvinit --package-version $(VERSION) \ | ||
--msgid-bugs-address "Your Bugmail <[email protected]>" | ||
|
||
translated: | ||
all: | ||
sed --in-place=.orig --separate 's/\@VERSION\@/$(VERSION)/g' $(MANPAGES) | ||
ifdef PO4A | ||
po4a $(PO4A_OPTS) po/po4a.cfg | ||
else | ||
@echo 'Install po4a to build translated manpages' | ||
endif | ||
|
||
all install: translated | ||
sed --in-place=.orig --separate 's/\@VERSION\@/$(VERSION)/g' $(MANPAGES) | ||
# Installation recipes are in ../src/Makefile | ||
install: all | ||
|
||
clean distclean: | ||
for man in $(MANPAGES) ; do \ | ||
if [ -f "$$man.orig" ] ; then mv "$$man.orig" "$$man" ; fi \ | ||
done | ||
for lang in $(LANGUAGES) ; do rm -rf "po/$$lang" ; done | ||
done | ||
for lang in $(LANGUAGES) ; do rm -rf "$$lang" "$$lang.po" ; done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
#, fuzzy | ||
msgid "" | ||
msgstr "" | ||
"Project-Id-Version: sysvinit 1.2.3\n" | ||
"Project-Id-Version: sysvinit 3.05\n" | ||
"Report-Msgid-Bugs-To: Your Bugmail <[email protected]>\n" | ||
"POT-Creation-Date: 2022-05-01 15:59-0300\n" | ||
"POT-Creation-Date: 2022-05-09 12:43-0300\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters