mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +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\
|
regaux.$O\
|
||||||
rregexec.$O\
|
rregexec.$O\
|
||||||
rregsub.$O\
|
rregsub.$O\
|
||||||
rregaux.$O\
|
|
||||||
|
|
||||||
HFILES=\
|
HFILES=\
|
||||||
regexp9.h\
|
regexp9.h\
|
||||||
|
|
|
@ -31,7 +31,7 @@ HFILES=\
|
||||||
all: $(LIB)
|
all: $(LIB)
|
||||||
|
|
||||||
install: $(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 isalpharune.3 $(PREFIX)/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)/man/man3/rune.3
|
||||||
|
|
18
unix/mkfile
18
unix/mkfile
|
@ -4,10 +4,12 @@ bio fmt mk regexp utf:V:
|
||||||
regexp) t=libregexp ;;
|
regexp) t=libregexp ;;
|
||||||
*) t=lib$target ;;
|
*) t=lib$target ;;
|
||||||
esac
|
esac
|
||||||
mkdir $t || true
|
#
|
||||||
rm $t/* || true
|
mkdir -p $t
|
||||||
|
rm -f $t/* || true
|
||||||
cd $t
|
cd $t
|
||||||
mk -f ../mkfile.$target
|
mk -f ../mkfile.$target
|
||||||
|
#
|
||||||
case $target in
|
case $target in
|
||||||
bio) d=$PLAN9/src/$t;;
|
bio) d=$PLAN9/src/$t;;
|
||||||
regexp) 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 ;;
|
utf) d=$PLAN9/src/lib9/$target ;;
|
||||||
mk) d=$PLAN9/src/cmd/mk ;;
|
mk) d=$PLAN9/src/cmd/mk ;;
|
||||||
esac
|
esac
|
||||||
|
#
|
||||||
for i in `ls -p $d/*.c`
|
for i in `ls -p $d/*.c`
|
||||||
do
|
do
|
||||||
if [ ! -f $i ]
|
if [ ! -f $i ]
|
||||||
|
@ -34,7 +37,16 @@ bio fmt mk regexp utf:V:
|
||||||
rm $t/* || true
|
rm $t/* || true
|
||||||
cd $t
|
cd $t
|
||||||
mk -f ../mkfile.$target
|
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:
|
lib%.tgz:
|
||||||
mk $stem
|
mk $stem
|
||||||
tar cf - lib$stem |gzip >lib$stem.tgz
|
tar cf - lib$stem |gzip >lib$stem.tgz
|
||||||
|
|
|
@ -8,8 +8,9 @@ TARG=\
|
||||||
fmt.h\
|
fmt.h\
|
||||||
fmtdef.h\
|
fmtdef.h\
|
||||||
nan.h\
|
nan.h\
|
||||||
print.3\
|
plan9.h\
|
||||||
fmtinstall.3\
|
fmtinstall.3\
|
||||||
|
print.3\
|
||||||
|
|
||||||
all:V: $TARG
|
all:V: $TARG
|
||||||
|
|
||||||
|
@ -40,8 +41,3 @@ README: ../README
|
||||||
NOTICE: ../NOTICE.fmt
|
NOTICE: ../NOTICE.fmt
|
||||||
cp $prereq $target
|
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
|
NOTICE: ../NOTICE.mk
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
sys.h: $PLAN9/src/cmd/mk/sys.h.std
|
sys.h: $PLAN9/src/cmd/mk/sys.std.h
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
|
@ -28,6 +28,12 @@ all:V: $TARG
|
||||||
%: $PLAN9/man/man7/%
|
%: $PLAN9/man/man7/%
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
|
regexp9.3: $PLAN9/man/man3/regexp.3
|
||||||
|
cp $prereq $target
|
||||||
|
|
||||||
|
regexp9.7: $PLAN9/man/man7/regexp.7
|
||||||
|
cp $prereq $target
|
||||||
|
|
||||||
%: ../make/%
|
%: ../make/%
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
|
@ -40,5 +46,6 @@ README: ../README
|
||||||
NOTICE: ../NOTICE.regexp
|
NOTICE: ../NOTICE.regexp
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
lib9.h: $PLAN9/src/libregexp/lib9.h
|
lib9.h: $PLAN9/src/libregexp/lib9.std.h
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
|
|
|
@ -5,12 +5,13 @@ TARG=\
|
||||||
README\
|
README\
|
||||||
Makefile\
|
Makefile\
|
||||||
`{ls -p $PLAN9/src/lib9/utf/*.c}\
|
`{ls -p $PLAN9/src/lib9/utf/*.c}\
|
||||||
|
plan9.h\
|
||||||
utf.h\
|
utf.h\
|
||||||
utfdef.h\
|
utfdef.h\
|
||||||
isalpharune.3\
|
isalpharune.3\
|
||||||
utf.7\
|
|
||||||
rune.3\
|
rune.3\
|
||||||
runestrcat.3\
|
runestrcat.3\
|
||||||
|
utf.7\
|
||||||
|
|
||||||
all:V: $TARG
|
all:V: $TARG
|
||||||
|
|
||||||
|
@ -41,6 +42,6 @@ README: ../README
|
||||||
NOTICE: ../NOTICE.utf
|
NOTICE: ../NOTICE.utf
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
utf.h: ../utf.h
|
utf.h: $PLAN9/include/utf.h
|
||||||
cp $prereq $target
|
cp $prereq $target
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue