mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
fix up extraction procedures
This commit is contained in:
parent
e5d47e6e15
commit
1b7f98fb30
7 changed files with 30 additions and 15 deletions
|
@ -11,7 +11,6 @@ OFILES=\
|
|||
regaux.$O\
|
||||
rregexec.$O\
|
||||
rregsub.$O\
|
||||
rregaux.$O\
|
||||
|
||||
HFILES=\
|
||||
regexp9.h\
|
||||
|
|
|
@ -31,7 +31,7 @@ HFILES=\
|
|||
all: $(LIB)
|
||||
|
||||
install: $(LIB)
|
||||
test -d $(PREFIX)/man/man3 || mkdir $(PREFIX)/man/man3
|
||||
mkdir -p $(PREFIX)/man/man3 $(PREFIX)/man/man7
|
||||
install -c -m 0644 isalpharune.3 $(PREFIX)/man/man3/isalpharune.3
|
||||
install -c -m 0644 utf.7 $(PREFIX)/man/man7/utf.7
|
||||
install -c -m 0644 rune.3 $(PREFIX)/man/man3/rune.3
|
||||
|
|
18
unix/mkfile
18
unix/mkfile
|
@ -4,10 +4,12 @@ bio fmt mk regexp utf:V:
|
|||
regexp) t=libregexp ;;
|
||||
*) t=lib$target ;;
|
||||
esac
|
||||
mkdir $t || true
|
||||
rm $t/* || true
|
||||
#
|
||||
mkdir -p $t
|
||||
rm -f $t/* || true
|
||||
cd $t
|
||||
mk -f ../mkfile.$target
|
||||
#
|
||||
case $target in
|
||||
bio) d=$PLAN9/src/$t;;
|
||||
regexp) d=$PLAN9/src/$t;;
|
||||
|
@ -15,6 +17,7 @@ bio fmt mk regexp utf:V:
|
|||
utf) d=$PLAN9/src/lib9/$target ;;
|
||||
mk) d=$PLAN9/src/cmd/mk ;;
|
||||
esac
|
||||
#
|
||||
for i in `ls -p $d/*.c`
|
||||
do
|
||||
if [ ! -f $i ]
|
||||
|
@ -34,7 +37,16 @@ bio fmt mk regexp utf:V:
|
|||
rm $t/* || true
|
||||
cd $t
|
||||
mk -f ../mkfile.$target
|
||||
|
||||
|
||||
%.install:V:
|
||||
mk $stem
|
||||
case $stem in
|
||||
mk) t=mk ;;
|
||||
regexp) t=libregexp ;;
|
||||
*) t=lib$stem ;;
|
||||
esac
|
||||
(cd $t; make install)
|
||||
|
||||
lib%.tgz:
|
||||
mk $stem
|
||||
tar cf - lib$stem |gzip >lib$stem.tgz
|
||||
|
|
|
@ -8,8 +8,9 @@ TARG=\
|
|||
fmt.h\
|
||||
fmtdef.h\
|
||||
nan.h\
|
||||
print.3\
|
||||
plan9.h\
|
||||
fmtinstall.3\
|
||||
print.3\
|
||||
|
||||
all:V: $TARG
|
||||
|
||||
|
@ -40,8 +41,3 @@ README: ../README
|
|||
NOTICE: ../NOTICE.fmt
|
||||
cp $prereq $target
|
||||
|
||||
fmt.h: ../fmt.h
|
||||
cp $prereq $target
|
||||
|
||||
fmt.c: $PLAN9/src/lib9/fmt/fmt.c
|
||||
cat $prereq | sed "/'u',.*__flagfmt/ s/__flagfmt/__ifmt/" >$target
|
||||
|
|
|
@ -39,5 +39,5 @@ README: ../README
|
|||
NOTICE: ../NOTICE.mk
|
||||
cp $prereq $target
|
||||
|
||||
sys.h: $PLAN9/src/cmd/mk/sys.h.std
|
||||
sys.h: $PLAN9/src/cmd/mk/sys.std.h
|
||||
cp $prereq $target
|
||||
|
|
|
@ -28,6 +28,12 @@ all:V: $TARG
|
|||
%: $PLAN9/man/man7/%
|
||||
cp $prereq $target
|
||||
|
||||
regexp9.3: $PLAN9/man/man3/regexp.3
|
||||
cp $prereq $target
|
||||
|
||||
regexp9.7: $PLAN9/man/man7/regexp.7
|
||||
cp $prereq $target
|
||||
|
||||
%: ../make/%
|
||||
cp $prereq $target
|
||||
|
||||
|
@ -40,5 +46,6 @@ README: ../README
|
|||
NOTICE: ../NOTICE.regexp
|
||||
cp $prereq $target
|
||||
|
||||
lib9.h: $PLAN9/src/libregexp/lib9.h
|
||||
lib9.h: $PLAN9/src/libregexp/lib9.std.h
|
||||
cp $prereq $target
|
||||
|
||||
|
|
|
@ -5,12 +5,13 @@ TARG=\
|
|||
README\
|
||||
Makefile\
|
||||
`{ls -p $PLAN9/src/lib9/utf/*.c}\
|
||||
plan9.h\
|
||||
utf.h\
|
||||
utfdef.h\
|
||||
isalpharune.3\
|
||||
utf.7\
|
||||
rune.3\
|
||||
runestrcat.3\
|
||||
utf.7\
|
||||
|
||||
all:V: $TARG
|
||||
|
||||
|
@ -41,6 +42,6 @@ README: ../README
|
|||
NOTICE: ../NOTICE.utf
|
||||
cp $prereq $target
|
||||
|
||||
utf.h: ../utf.h
|
||||
utf.h: $PLAN9/include/utf.h
|
||||
cp $prereq $target
|
||||
|
||||
|
|
Loading…
Reference in a new issue