Add .Os sbase and sed replace to .Os sbase $(VERSION) in make install

This commit is contained in:
sin 2015-01-31 19:37:03 +00:00
parent 572ad27110
commit 0934e7f6ed
76 changed files with 76 additions and 75 deletions

View File

@ -168,6 +168,7 @@ install: all
cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN) cd $(DESTDIR)$(PREFIX)/bin && chmod 755 $(BIN)
mkdir -p $(DESTDIR)$(MANPREFIX)/man1 mkdir -p $(DESTDIR)$(MANPREFIX)/man1
for m in $(MAN); do sed "s/.Os sbase/.Os sbase $(VERSION)/g" < "$$m" > $(DESTDIR)$(MANPREFIX)/man1/"$$m"; done
cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN) cd $(DESTDIR)$(MANPREFIX)/man1 && chmod 644 $(MAN)
uninstall: uninstall:

View File

@ -1,6 +1,6 @@
.Dd November 21, 2014 .Dd November 21, 2014
.Dt BASENAME 1 .Dt BASENAME 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm basename .Nm basename
.Nd strip leading path components .Nd strip leading path components

2
cal.1
View File

@ -1,6 +1,6 @@
.Dd January 18, 2015 .Dd January 18, 2015
.Dt CAL 1 .Dt CAL 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cal .Nm cal
.Nd show calendar .Nd show calendar

2
cat.1
View File

@ -1,6 +1,6 @@
.Dd January 16, 2015 .Dd January 16, 2015
.Dt CAT 1 .Dt CAT 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cat .Nm cat
.Nd concatenate files .Nd concatenate files

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt CHGRP 1 .Dt CHGRP 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm chgrp .Nm chgrp
.Nd change the file group ownership .Nd change the file group ownership

View File

@ -1,6 +1,6 @@
.Dd January 17, 2015 .Dd January 17, 2015
.Dt CHMOD 1 .Dt CHMOD 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm chmod .Nm chmod
.Nd change file mode .Nd change file mode

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt CHOWN 1 .Dt CHOWN 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm chown .Nm chown
.Nd change file ownership .Nd change file ownership

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt CHROOT 1 .Dt CHROOT 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm chroot .Nm chroot
.Nd invoke a command with a different root directory .Nd invoke a command with a different root directory

View File

@ -1,6 +1,6 @@
.Dd January 17, 2015 .Dd January 17, 2015
.Dt CKSUM 1 .Dt CKSUM 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cksum .Nm cksum
.Nd compute file checksum .Nd compute file checksum

2
cmp.1
View File

@ -1,6 +1,6 @@
.Dd November 21, 2014 .Dd November 21, 2014
.Dt CMP 1 .Dt CMP 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cmp .Nm cmp
.Nd compare two files .Nd compare two files

2
cols.1
View File

@ -1,6 +1,6 @@
.Dd December 8, 2014 .Dd December 8, 2014
.Dt COLS 1 .Dt COLS 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cols .Nm cols
.Nd columnize output .Nd columnize output

2
comm.1
View File

@ -1,6 +1,6 @@
.Dd January 18, 2015 .Dd January 18, 2015
.Dt COMM 1 .Dt COMM 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm comm .Nm comm
.Nd select or reject lines common to two files .Nd select or reject lines common to two files

2
cp.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt CP 1 .Dt CP 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cp .Nm cp
.Nd copy files and directories .Nd copy files and directories

2
cron.1
View File

@ -1,6 +1,6 @@
.Dd December 16, 2014 .Dd December 16, 2014
.Dt CRON 1 .Dt CRON 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cron .Nm cron
.Nd clock daemon .Nd clock daemon

2
cut.1
View File

@ -1,6 +1,6 @@
.Dd January 22, 2015 .Dd January 22, 2015
.Dt CUT 1 .Dt CUT 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm cut .Nm cut
.Nd extract columns of data .Nd extract columns of data

2
date.1
View File

@ -1,6 +1,6 @@
.Dd January 23, 2015 .Dd January 23, 2015
.Dt DATE 1 .Dt DATE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm date .Nm date
.Nd print date and time .Nd print date and time

View File

@ -1,6 +1,6 @@
.Dd January 23, 2015 .Dd January 23, 2015
.Dt DIRNAME 1 .Dt DIRNAME 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm dirname .Nm dirname
.Nd strip final path component .Nd strip final path component

2
du.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt DU 1 .Dt DU 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm du .Nm du
.Nd display disk usage statistics .Nd display disk usage statistics

2
echo.1
View File

@ -1,6 +1,6 @@
.Dd January 23, 2015 .Dd January 23, 2015
.Dt ECHO 1 .Dt ECHO 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm echo .Nm echo
.Nd print arguments .Nd print arguments

2
env.1
View File

@ -1,6 +1,6 @@
.Dd January 24, 2015 .Dd January 24, 2015
.Dt ENV 1 .Dt ENV 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm env .Nm env
.Nd modify the environment, then print it or run a command .Nd modify the environment, then print it or run a command

View File

@ -1,6 +1,6 @@
.Dd January 25, 2015 .Dd January 25, 2015
.Dt EXPAND 1 .Dt EXPAND 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm expand .Nm expand
.Nd expand tabs to spaces .Nd expand tabs to spaces

2
expr.1
View File

@ -1,6 +1,6 @@
.Dd January 25, 2015 .Dd January 25, 2015
.Dt EXPR 1 .Dt EXPR 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm expr .Nm expr
.Nd evaluate expression .Nd evaluate expression

View File

@ -1,6 +1,6 @@
.Dd January 16, 2015 .Dd January 16, 2015
.Dt FALSE 1 .Dt FALSE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm false .Nm false
.Nd return failure .Nd return failure

2
fold.1
View File

@ -1,6 +1,6 @@
.Dd January 25, 2015 .Dd January 25, 2015
.Dt FOLD 1 .Dt FOLD 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm fold .Nm fold
.Nd wrap lines to width .Nd wrap lines to width

2
grep.1
View File

@ -1,6 +1,6 @@
.Dd November 21, 2014 .Dd November 21, 2014
.Dt GREP 1 .Dt GREP 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm grep .Nm grep
.Nd search files for patterns .Nd search files for patterns

2
head.1
View File

@ -1,6 +1,6 @@
.Dd January 25, 2015 .Dd January 25, 2015
.Dt HEAD 1 .Dt HEAD 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm head .Nm head
.Nd display initial lines of files .Nd display initial lines of files

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt HOSTNAME 1 .Dt HOSTNAME 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm hostname .Nm hostname
.Nd set or print name of current host system .Nd set or print name of current host system

2
kill.1
View File

@ -1,6 +1,6 @@
.Dd November 23, 2014 .Dd November 23, 2014
.Dt KILL 1 .Dt KILL 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm kill .Nm kill
.Nd signal processes .Nd signal processes

2
link.1
View File

@ -1,6 +1,6 @@
.Dd January 25, 2015 .Dd January 25, 2015
.Dt LINK 1 .Dt LINK 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm link .Nm link
.Nd call the link function .Nd call the link function

2
ln.1
View File

@ -1,6 +1,6 @@
.Dd January 26, 2015 .Dd January 26, 2015
.Dt LN 1 .Dt LN 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm ln .Nm ln
.Nd link files .Nd link files

View File

@ -1,6 +1,6 @@
.Dd December 4, 2014 .Dd December 4, 2014
.Dt LOGGER 1 .Dt LOGGER 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm logger .Nm logger
.Nd make entries in the system log .Nd make entries in the system log

View File

@ -1,6 +1,6 @@
.Dd January 26, 2015 .Dd January 26, 2015
.Dt LOGNAME 1 .Dt LOGNAME 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm logname .Nm logname
.Nd show login name .Nd show login name

2
ls.1
View File

@ -1,6 +1,6 @@
.Dd January 20, 2015 .Dd January 20, 2015
.Dt LS 1 .Dt LS 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm ls .Nm ls
.Nd list directory contents .Nd list directory contents

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt MD5SUM 1 .Dt MD5SUM 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm md5sum .Nm md5sum
.Nd compute MD5 message digest .Nd compute MD5 message digest

View File

@ -1,6 +1,6 @@
.Dd January 26, 2015 .Dd January 26, 2015
.Dt MKDIR 1 .Dt MKDIR 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm mkdir .Nm mkdir
.Nd create directories .Nd create directories

View File

@ -1,6 +1,6 @@
.Dd January 28, 2015 .Dd January 28, 2015
.Dt MKFIFO 1 .Dt MKFIFO 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm mkfifo .Nm mkfifo
.Nd create named pipes .Nd create named pipes

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt MKTEMP 1 .Dt MKTEMP 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm mktemp .Nm mktemp
.Nd make temporary filename .Nd make temporary filename

2
mv.1
View File

@ -1,6 +1,6 @@
.Dd January 28, 2015 .Dd January 28, 2015
.Dt MV 1 .Dt MV 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm mv .Nm mv
.Nd move files and directories .Nd move files and directories

2
nice.1
View File

@ -1,6 +1,6 @@
.Dd January 28, 2015 .Dd January 28, 2015
.Dt NICE 1 .Dt NICE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm nice .Nm nice
.Nd run command with altered niceness .Nd run command with altered niceness

2
nl.1
View File

@ -1,6 +1,6 @@
.Dd December 4, 2014 .Dd December 4, 2014
.Dt NL 1 .Dt NL 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm nl .Nm nl
.Nd line numbering filter .Nd line numbering filter

View File

@ -1,6 +1,6 @@
.Dd January 28, 2015 .Dd January 28, 2015
.Dt NOHUP 1 .Dt NOHUP 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm nohup .Nm nohup
.Nd run command immune to hangups .Nd run command immune to hangups

View File

@ -1,6 +1,6 @@
.Dd January 29, 2015 .Dd January 29, 2015
.Dt PASTE 1 .Dt PASTE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm paste .Nm paste
.Nd merge lines of files in parallel or sequentially .Nd merge lines of files in parallel or sequentially

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt PRINTENV 1 .Dt PRINTENV 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm printenv .Nm printenv
.Nd print out the environment or the values of specific variables. .Nd print out the environment or the values of specific variables.

2
pwd.1
View File

@ -1,6 +1,6 @@
.Dd November 23, 2014 .Dd November 23, 2014
.Dt PWD 1 .Dt PWD 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm pwd .Nm pwd
.Nd print working directory .Nd print working directory

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt READLINK 1 .Dt READLINK 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm readlink .Nm readlink
.Nd print value of a symbolic link or canonical file name .Nd print value of a symbolic link or canonical file name

View File

@ -1,6 +1,6 @@
.Dd January 29, 2015 .Dd January 29, 2015
.Dt RENICE 1 .Dt RENICE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm renice .Nm renice
.Nd change niceness of processes .Nd change niceness of processes

2
rm.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt RM 1 .Dt RM 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm rm .Nm rm
.Nd remove directory entries .Nd remove directory entries

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt RMDIR 1 .Dt RMDIR 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm rmdir .Nm rmdir
.Nd remove directories .Nd remove directories

2
seq.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SEQ 1 .Dt SEQ 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm seq .Nm seq
.Nd print a sequence of numbers .Nd print a sequence of numbers

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SETSID 1 .Dt SETSID 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm setsid .Nm setsid
.Nd run a program in a new session .Nd run a program in a new session

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SHA1SUM 1 .Dt SHA1SUM 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm sha1sum .Nm sha1sum
.Nd compute SHA-1 message digest .Nd compute SHA-1 message digest

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SHA256SUM 1 .Dt SHA256SUM 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm sha256sum .Nm sha256sum
.Nd compute SHA256 message digest .Nd compute SHA256 message digest

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SHA512SUM 1 .Dt SHA512SUM 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm sha512sum .Nm sha512sum
.Nd compute SHA512 message digest .Nd compute SHA512 message digest

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SLEEP 1 .Dt SLEEP 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm sleep .Nm sleep
.Nd wait for a number of seconds .Nd wait for a number of seconds

2
sort.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SORT 1 .Dt SORT 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm sort .Nm sort
.Nd sort lines .Nd sort lines

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SPLIT 1 .Dt SPLIT 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm split .Nm split
.Nd split up a file .Nd split up a file

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SPONGE 1 .Dt SPONGE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm sponge .Nm sponge
.Nd soak up standard input and write to a file .Nd soak up standard input and write to a file

View File

@ -1,6 +1,6 @@
.Dd November 23, 2014 .Dd November 23, 2014
.Dt STRINGS 1 .Dt STRINGS 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm strings .Nm strings
.Nd print the strings of pritable characters in files .Nd print the strings of pritable characters in files

2
sync.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt SYNC 1 .Dt SYNC 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm sync .Nm sync
.Nd flush disk cache .Nd flush disk cache

2
tail.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt TAIL 1 .Dt TAIL 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm tail .Nm tail
.Nd display final lines of files .Nd display final lines of files

2
tar.1
View File

@ -1,6 +1,6 @@
.Dd January 31, 2015 .Dd January 31, 2015
.Dt TAR 1 .Dt TAR 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm tar .Nm tar
.Nd create, list or extract a tape archive .Nd create, list or extract a tape archive

2
tee.1
View File

@ -1,6 +1,6 @@
.Dd January 23, 2015 .Dd January 23, 2015
.Dt TEE 1 .Dt TEE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm tee .Nm tee
.Nd duplicate stdin .Nd duplicate stdin

2
test.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt TEST 1 .Dt TEST 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm test .Nm test
.Nd check file types and compare values .Nd check file types and compare values

View File

@ -1,6 +1,6 @@
.Dd January 20, 2014 .Dd January 20, 2014
.Dt TOUCH 1 .Dt TOUCH 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm touch .Nm touch
.Nd set file timestamps .Nd set file timestamps

2
tr.1
View File

@ -1,6 +1,6 @@
.Dd January 16, 2015 .Dd January 16, 2015
.Dt TR 1 .Dt TR 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm tr .Nm tr
.Nd translate characters .Nd translate characters

2
true.1
View File

@ -1,6 +1,6 @@
.Dd January 16, 2015 .Dd January 16, 2015
.Dt TRUE 1 .Dt TRUE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm true .Nm true
.Nd return success .Nd return success

2
tty.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt TTY 1 .Dt TTY 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm tty .Nm tty
.Nd print terminal name .Nd print terminal name

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt UNAME 1 .Dt UNAME 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm uname .Nm uname
.Nd print system information .Nd print system information

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt UNEXPAND 1 .Dt UNEXPAND 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm unexpand .Nm unexpand
.Nd convert blanks to tabs .Nd convert blanks to tabs

2
uniq.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt UNIQ 1 .Dt UNIQ 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm uniq .Nm uniq
.Nd report or filter out repeated lines in a file .Nd report or filter out repeated lines in a file

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt UNLINK 1 .Dt UNLINK 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm unlink .Nm unlink
.Nd call the unlink function .Nd call the unlink function

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt UUDECODE 1 .Dt UUDECODE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm uudecode .Nm uudecode
.Nd decode a uuencoded file .Nd decode a uuencoded file

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt UUENCODE 1 .Dt UUENCODE 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm uuencode .Nm uuencode
.Nd encode a binary file .Nd encode a binary file

2
wc.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt WC 1 .Dt WC 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm wc .Nm wc
.Nd word count .Nd word count

View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt XARGS 1 .Dt XARGS 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm xargs .Nm xargs
.Nd constuct argument list(s) and execute command .Nd constuct argument list(s) and execute command

2
yes.1
View File

@ -1,6 +1,6 @@
.Dd January 30, 2015 .Dd January 30, 2015
.Dt YES 1 .Dt YES 1
.Os .Os sbase
.Sh NAME .Sh NAME
.Nm yes .Nm yes
.Nd output a string repeatedly .Nd output a string repeatedly