# HG changeset patch # User Guido Berhoerster # Date 1391793041 -3600 # Node ID 7e44a0a8dc2cbbe0f3a87083dd07efae2e0a5116 # Parent 82a31628a26daef9dd00526b976135a6aa31b2b7 Convert the manpage to DocBook V5.0 diff -r 82a31628a26d -r 7e44a0a8dc2c Makefile --- a/Makefile Fri Feb 07 18:10:41 2014 +0100 +++ b/Makefile Fri Feb 07 18:10:41 2014 +0100 @@ -38,6 +38,23 @@ MSGFMT := msgfmt INTLTOOL_UPDATE := intltool-update INTLTOOL_MERGE := intltool-merge +XSLTPROC := xsltproc +DOCBOOK5_MANPAGES_STYLESHEET = http://docbook.sourceforge.net/release/xsl-ns/current/manpages/docbook.xsl + +define generate-manpage-rule = +%.$(1): %.$(1).xml + $$(XSLTPROC) \ + --xinclude \ + --stringparam package $$(PACKAGE) \ + --stringparam version $$(VERSION)\ + docbook-update-source-data.xsl $$< | \ + $$(XSLTPROC) \ + --xinclude \ + $$(DOCBOOK5_MANPAGES_FLAGS) \ + --output $$@ \ + $$(DOCBOOK5_MANPAGES_STYLESHEET) \ + - +endef DESTDIR ?= prefix ?= /usr/local @@ -49,6 +66,7 @@ xdgautostartdir ?= $(sysconfdir)/xdg/autostart OBJS = main.o pkui-icon.o pkui-backend.o +MANPAGES = $(PACKAGE).1 AUTOSTART_FILE = $(PACKAGE).desktop MOFILES := $(patsubst %.po,%.mo,$(wildcard po/*.po)) POTFILE = po/$(PACKAGE).pot @@ -59,12 +77,14 @@ -DVERSION=\"$(VERSION)\" \ -DLOCALEDIR="\"$(localedir)\"" LDLIBS := $(shell pkg-config --libs gtk+-2.0 unique-1.0 libnotify packagekit-glib2) +DOCBOOK5_MANPAGES_FLAGS = --stringparam man.authors.section.enabled 0 \ + --stringparam man.copyright.section.enabled 0 .DEFAULT_TARGET = all .PHONY: all clean clobber dist install -all: $(PACKAGE) $(MOFILES) $(AUTOSTART_FILE) +all: $(PACKAGE) $(MANPAGES) $(MOFILES) $(AUTOSTART_FILE) $(PACKAGE): $(OBJS) $(LINK.o) $^ $(LDLIBS) -o $@ @@ -84,6 +104,8 @@ $(MAKEDEPEND.c) $< | $(SED) -f deps.sed >$*.d $(COMPILE.c) -o $@ $< +$(foreach section,1 2 3 4 5 6 7 8 9,$(eval $(call generate-manpage-rule,$(section)))) + %.desktop: %.desktop.in $(MOFILES) $(INTLTOOL_MERGE) --desktop-style --utf8 po $< $@ @@ -102,7 +124,7 @@ $(DESTDIR)$(mandir)/man1/$(PACKAGE).1 clean: - rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(AUTOSTART_FILE) + rm -f $(PACKAGE) $(OBJS) $(POTFILE) $(MOFILES) $(MANPAGES) $(AUTOSTART_FILE) clobber: clean rm -f $(patsubst %.o,%.d,$(OBJS)) diff -r 82a31628a26d -r 7e44a0a8dc2c docbook-update-source-data.xsl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docbook-update-source-data.xsl Fri Feb 07 18:10:41 2014 +0100 @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + diff -r 82a31628a26d -r 7e44a0a8dc2c pk-update-icon.1 --- a/pk-update-icon.1 Fri Feb 07 18:10:41 2014 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,50 +0,0 @@ -.\" Copyright (C) 2011 Guido Berhoerster -.\" -.\" Licensed under the GNU General Public License Version 2 -.\" -.\" This program is free software; you can redistribute it and/or modify -.\" it under the terms of the GNU General Public License as published by -.\" the Free Software Foundation; either version 2 of the License, or -.\" (at your option) any later version. -.\" -.\" This program is distributed in the hope that it will be useful, -.\" but WITHOUT ANY WARRANTY; without even the implied warranty of -.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -.\" GNU General Public License for more details. -.\" -.\" You should have received a copy of the GNU General Public License -.\" along with this program; if not, write to the Free Software -.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -.\" -.TH PK\-UPDATE\-ICON 1 "20 Oct 2011" -.SH NAME -pk\-update\-icon \- display notifications about software updates -.SH SYNOPSIS -\fBpk\-update\-icon\fR -[\fB\-hv?\fR] -[\fB\-d\fR \fIdelay\fR | \fB\-\-delay\fR=\fIdelay\fR] -[\fB\-i\fR \fIinterval\fR | \fB\-\-interval\fR=\fIinterval\fR] -.SH DESCRIPTION -\fBpk\-update\-icon\fR displays notifications and an icon in the tray area of -the panel when package updates are available. -.SH OPTIONS -The following options are supported: -.TP -.BR \-d ", " \-\-delay =\fIdelay\fR -Set the delay in seconds before the first check for updates. -.TP -.BR \-h ", " \-? ", " \-\-help -Print a summary of all command line options and exit. -.TP -.BR \-i ", " \-\-interval =\fIinterval\fR -Set the interval in seconds between checks for updates. -.TP -.BR \-v ", " \-\-version -Print the version number and exit. -.SH EXIT STATUS -.TP -.B 0 -The program has exited normally. -.TP -.B >0 -An Error has occurred. diff -r 82a31628a26d -r 7e44a0a8dc2c pk-update-icon.1.xml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pk-update-icon.1.xml Fri Feb 07 18:10:41 2014 +0100 @@ -0,0 +1,172 @@ + + + + + + + Guido + Berhoerster + + gber@opensuse.org + + + 7 February, 2014 + + + pk-update-icon + 1 + + + User Commands + + + pk-update-icon + display notifications about software updates + + + + pk-update-icon + + + + + + + + + + + + + + + + + + + + + + + delay + + + + delay + + + + + + interval + + + + interval + + + + + + Description + pk-update-icon displays notifications and an + icon in the tray area of the panel when package updates are + available. + + + Options + The following options are supported: + + + + + delay + + + + delay + + + Set the delay in seconds before the first check for + updates. + + + + + + + + + + + + + + Print a summary of all command line options and exit. + + + + + + interval + + + + interval + + + Set the interval in seconds between checks for updates. + + + + + + + + + + + Print the version number and exit. + + + + + + Exit Status + The following exit values are returned: + + + 0 + + Command successfully executed. + + + + > 0 + + An error has occured. + + + + +