mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
unix: move man pages in unix ports
This commit is contained in:
parent
9f0d3523fc
commit
f5fcdeeedf
8 changed files with 51 additions and 24 deletions
|
@ -31,11 +31,11 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
|
test -d $(PREFIX)/share/man/man3 || mkdir $(PREFIX)/share/man/man3
|
||||||
install -c -m 0644 isalpharune.3 $(PREFIX)/man/man3/isalpharune.3
|
install -c -m 0644 isalpharune.3 $(PREFIX)/share/man/man3/isalpharune.3
|
||||||
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
|
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
|
||||||
install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3
|
install -c -m 0644 rune.3 $(PREFIX)/share/man/man3/rune.3
|
||||||
install -c -m 0644 runestrcat.3 $(PREFIX)/man/man3/runestrcat.3
|
install -c -m 0644 runestrcat.3 $(PREFIX)/share/man/man3/runestrcat.3
|
||||||
install -c -m 0644 utf.h $(PREFIX)/include/utf.h
|
install -c -m 0644 utf.h $(PREFIX)/include/utf.h
|
||||||
install -c -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
install -c -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,8 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
mkdir -p $(PREFIX)/man/man3
|
mkdir -p $(PREFIX)/share/man/man3
|
||||||
install -m 0644 bio.3 $(PREFIX)/man/man3/bio.3
|
install -m 0644 bio.3 $(PREFIX)/share/man/man3/bio.3
|
||||||
mkdir -p $(PREFIX)/include
|
mkdir -p $(PREFIX)/include
|
||||||
install -m 0644 bio.h $(PREFIX)/include
|
install -m 0644 bio.h $(PREFIX)/include
|
||||||
mkdir -p $(PREFIX)/lib
|
mkdir -p $(PREFIX)/lib
|
||||||
|
|
|
@ -17,6 +17,7 @@ OFILES=\
|
||||||
fmtfdflush.$O\
|
fmtfdflush.$O\
|
||||||
fmtlocale.$O\
|
fmtlocale.$O\
|
||||||
fmtlock.$O\
|
fmtlock.$O\
|
||||||
|
fmtnull.$O\
|
||||||
fmtprint.$O\
|
fmtprint.$O\
|
||||||
fmtquote.$O\
|
fmtquote.$O\
|
||||||
fmtrune.$O\
|
fmtrune.$O\
|
||||||
|
@ -51,9 +52,9 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
test -d $(PREFIX)/man/man3 || mkdir -p $(PREFIX)/man/man3
|
test -d $(PREFIX)/share/man/man3 || mkdir -p $(PREFIX)/share/man/man3
|
||||||
install -m 0644 print.3 $(PREFIX)/man/man3/print.3
|
install -m 0644 print.3 $(PREFIX)/share/man/man3/print.3
|
||||||
install -m 0644 fmtinstall.3 $(PREFIX)/man/man3/fmtinstall.3
|
install -m 0644 fmtinstall.3 $(PREFIX)/share/man/man3/fmtinstall.3
|
||||||
mkdir -p $(PREFIX)/include
|
mkdir -p $(PREFIX)/include
|
||||||
install -m 0644 fmt.h $(PREFIX)/include/fmt.h
|
install -m 0644 fmt.h $(PREFIX)/include/fmt.h
|
||||||
mkdir -p $(PREFIX)/lib
|
mkdir -p $(PREFIX)/lib
|
||||||
|
|
|
@ -19,8 +19,8 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
mkdir -p $(PREFIX)/man/man3 $(PREFIX)/man/man7
|
mkdir -p $(PREFIX)/share/man/man3 $(PREFIX)/man/man7
|
||||||
install -m 0644 regexp9.3 $(PREFIX)/man/man3/regexp9.3
|
install -m 0644 regexp9.3 $(PREFIX)/share/man/man3/regexp9.3
|
||||||
install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7
|
install -m 0644 regexp9.7 $(PREFIX)/man/man7/regexp9.7
|
||||||
mkdir -p $(PREFIX)/lib
|
mkdir -p $(PREFIX)/lib
|
||||||
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
install -m 0644 $(LIB) $(PREFIX)/lib/$(LIB)
|
||||||
|
|
|
@ -31,11 +31,11 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(LIB)
|
install: $(LIB)
|
||||||
mkdir -p $(PREFIX)/man/man3 $(PREFIX)/man/man7
|
mkdir -p $(PREFIX)/share/man/man3 $(PREFIX)/man/man7
|
||||||
install -c -m 0644 isalpharune.3 $(PREFIX)/man/man3/isalpharune.3
|
install -c -m 0644 isalpharune.3 $(PREFIX)/share/man/man3/isalpharune.3
|
||||||
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
|
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
|
||||||
install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3
|
install -c -m 0644 rune.3 $(PREFIX)/share/man/man3/rune.3
|
||||||
install -c -m 0644 runestrcat.3 $(PREFIX)/man/man3/runestrcat.3
|
install -c -m 0644 runestrcat.3 $(PREFIX)/share/man/man3/runestrcat.3
|
||||||
mkdir -p $(PREFIX)/include
|
mkdir -p $(PREFIX)/include
|
||||||
install -c -m 0644 utf.h $(PREFIX)/include/utf.h
|
install -c -m 0644 utf.h $(PREFIX)/include/utf.h
|
||||||
mkdir -p $(PREFIX)/lib
|
mkdir -p $(PREFIX)/lib
|
||||||
|
|
14
unix/mkfile
14
unix/mkfile
|
@ -17,14 +17,14 @@ test-%:V:
|
||||||
t=$stem
|
t=$stem
|
||||||
path=($PLAN9/bin $path)
|
path=($PLAN9/bin $path)
|
||||||
mk new-$t
|
mk new-$t
|
||||||
cd $t
|
|
||||||
switch($t){
|
switch($t){
|
||||||
case bio; d=libbio
|
case bio; d=libbio; td=libbio
|
||||||
case regexp; d=libregexp
|
case regexp; d=libregexp; td=libregexp
|
||||||
case fmt; d=lib9/fmt
|
case fmt; d=lib9/fmt; td=libfmt
|
||||||
case utf: d=lib9/utf
|
case utf; d=lib9/utf; td=libutf
|
||||||
case mk; d=cmd/mk
|
case mk; d=cmd/mk; td=mk
|
||||||
}
|
}
|
||||||
|
cd $td
|
||||||
d=$PLAN9/src/$d
|
d=$PLAN9/src/$d
|
||||||
for(i in `{ls -p $d/*.c})
|
for(i in `{ls -p $d/*.c})
|
||||||
if(! test -f $i)
|
if(! test -f $i)
|
||||||
|
@ -34,7 +34,7 @@ test-%:V:
|
||||||
if(! test -f `{echo $i | sed 's/.c$/.o/'})
|
if(! test -f `{echo $i | sed 's/.c$/.o/'})
|
||||||
echo XXX not building $i
|
echo XXX not building $i
|
||||||
cd ..
|
cd ..
|
||||||
rm -r $t
|
rm -r $td
|
||||||
|
|
||||||
lib%.tgz:V:
|
lib%.tgz:V:
|
||||||
mk new-$stem
|
mk new-$stem
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
MAKEALL=`{cd ../make; ls Make.*}
|
MAKEALL=`{cd ../make; ls Make.*}
|
||||||
|
CFILES=`{9 ls -p $PLAN9/src/lib9/fmt/*.c}
|
||||||
|
CFILES1=`{9 ls -p $PLAN9/src/lib9/fmt/*.c |grep -v test}
|
||||||
TARG=\
|
TARG=\
|
||||||
$MAKEALL\
|
$MAKEALL\
|
||||||
|
$CFILES\
|
||||||
NOTICE\
|
NOTICE\
|
||||||
README\
|
README\
|
||||||
Makefile\
|
Makefile\
|
||||||
`{9 ls -p $PLAN9/src/lib9/fmt/*.c}\
|
|
||||||
fmt.h\
|
fmt.h\
|
||||||
fmtdef.h\
|
fmtdef.h\
|
||||||
nan.h\
|
nan.h\
|
||||||
|
@ -19,3 +21,17 @@ WHAT=fmt
|
||||||
%: $PLAN9/src/lib9/fmt/%
|
%: $PLAN9/src/lib9/fmt/%
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
|
fmt1.c: plan9.h $CFILES1
|
||||||
|
(echo '#include <stdarg.h>'; \
|
||||||
|
echo '#include <string.h>'; \
|
||||||
|
echo '#include <stdlib.h>'; \
|
||||||
|
echo '#include <errno.h>'; \
|
||||||
|
echo '#include <limits.h>'; \
|
||||||
|
echo '#include <math.h>'; \
|
||||||
|
echo '#include <float.h>'; \
|
||||||
|
cat plan9.h; \
|
||||||
|
echo '#include "utf.h"'; \
|
||||||
|
echo '#include "fmt.h"'; \
|
||||||
|
cat fmtdef.h; \
|
||||||
|
grep -hv '^#include' $CFILES1) >$target
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
MAKEALL=`{cd ../make; ls Make.*}
|
MAKEALL=`{cd ../make; ls Make.*}
|
||||||
|
CFILES=`{9 ls -p $PLAN9/src/lib9/utf/*.c}
|
||||||
TARG=\
|
TARG=\
|
||||||
$MAKEALL\
|
$MAKEALL\
|
||||||
NOTICE\
|
NOTICE\
|
||||||
README\
|
README\
|
||||||
Makefile\
|
Makefile\
|
||||||
`{9 ls -p $PLAN9/src/lib9/utf/*.c}\
|
$CFILES\
|
||||||
plan9.h\
|
plan9.h\
|
||||||
utf.h\
|
utf.h\
|
||||||
utfdef.h\
|
utfdef.h\
|
||||||
|
@ -23,3 +24,12 @@ utf.h: $PLAN9/include/utf.h
|
||||||
%: $PLAN9/src/lib9/utf/%
|
%: $PLAN9/src/lib9/utf/%
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
|
utf1.c:D: plan9.h $CFILES
|
||||||
|
(cat plan9.h; \
|
||||||
|
echo '#include <stdlib.h>'; \
|
||||||
|
echo '#include <string.h>'; \
|
||||||
|
echo '#include <unistd.h>'; \
|
||||||
|
echo '#define bsearch utf_bsearch'; \
|
||||||
|
echo '#include "utf.h"'; \
|
||||||
|
grep -hv '^#include' $CFILES) >$target
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue