r22943 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22942‎ | r22943 | r22944 >
Date:00:59, 13 June 2007
Author:river
Status:old
Tags:
Comment:
- prog.mk: support installing manpage if present
- add manpage for pwtool
Modified paths:
  • /trunk/tools/tsutils/mk/prog.mk (modified) (history)
  • /trunk/tools/tsutils/pwtool/pwtool.1 (added) (history)

Diff [purge]

Index: trunk/tools/tsutils/pwtool/pwtool.1
@@ -0,0 +1,23 @@
 2+.TH PWTOOL 8 "June 13, 2007"
 3+.SH NAME
 4+pwtool \- change shell and gecos information
 5+.SH SYNOPSIS
 6+.B pwtool
 7+[-h] -g \fIgecos\fP] [-s \fIshell\fP]
 8+.SH DESCRIPTION
 9+.B pwtool
 10+allows a user to change his login shell and gecos (real name) information in
 11+\fI/etc/passwd\fP.
 12+.SH OPTIONS
 13+.TP
 14+.B \-h
 15+Show summary of options.
 16+.TP
 17+.B \-g \fIgecos\fP
 18+Change gecos (real name) to \fIgecos\fP.
 19+.TP
 20+.B \-s \fIshell\fP
 21+Change login shell to \fIshell\fP.
 22+
 23+.SH AUTHOR
 24+pwtool was written by River Tarnell <river@attenuate.org>.
Index: trunk/tools/tsutils/mk/prog.mk
@@ -4,7 +4,10 @@
55 BINMODE ?= 755
66 OWNER ?= root
77 GROUP ?= bin
 8+MANSECT ?= 1
89
 10+MANDIR ?= /usr/local/man/man$(MANSECT)
 11+
912 all: $(PROG)
1013 $(PROG): $(OBJS)
1114 $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS)
@@ -17,5 +20,9 @@
1821 realinstall:
1922 install -d -m 755 $(BINDIR)
2023 install -m $(BINMODE) -o $(OWNER) -g $(GROUP) $(PROG) $(BINDIR)
 24+ if test -f $(PROG).$(MANSECT); then \
 25+ install -d -m 755 $(MANDIR); \
 26+ install -m 644 $(PROG).$(MANSECT) $(MANDIR); \
 27+ fi
2128
2229 .PHONY: clean all install realinstall lint

Status & tagging log