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 @@ |
5 | 5 | BINMODE ?= 755 |
6 | 6 | OWNER ?= root |
7 | 7 | GROUP ?= bin |
| 8 | +MANSECT ?= 1 |
8 | 9 | |
| 10 | +MANDIR ?= /usr/local/man/man$(MANSECT) |
| 11 | + |
9 | 12 | all: $(PROG) |
10 | 13 | $(PROG): $(OBJS) |
11 | 14 | $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(LIBS) |
— | — | @@ -17,5 +20,9 @@ |
18 | 21 | realinstall: |
19 | 22 | install -d -m 755 $(BINDIR) |
20 | 23 | 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 |
21 | 28 | |
22 | 29 | .PHONY: clean all install realinstall lint |