This commit is contained in:
rsc 2005-09-13 04:23:42 +00:00
parent 28c158a5f5
commit 7c024ff2d8

7
dist/debian/mkpkg vendored
View file

@ -60,7 +60,10 @@ for(i)@{
echo Maintainer: 'Russ Cox <rsc@swtch.com>' echo Maintainer: 'Russ Cox <rsc@swtch.com>'
echo Description: $desc echo Description: $desc
} >$i/DEBIAN/control } >$i/DEBIAN/control
awk -v'pkg='$grepfor -v 'plan9='$TREE9 '$2==pkg { whatis grepfor
awk -v'grepfor='$grepfor -v 'pkg='$i -v 'plan9='$TREE9 '
BEGIN { print "grep for " grepfor >"/dev/stderr" }
$2==grepfor {
dir=$1 dir=$1
sub("/[^/]+$", "/", dir) sub("/[^/]+$", "/", dir)
if(dir != lastdir){ if(dir != lastdir){
@ -69,7 +72,7 @@ for(i)@{
} }
if($1 !~ /\/$/) if($1 !~ /\/$/)
printf("cp ''%s'' ''%s''\n", plan9 "/" $1, pkg "/usr/local/plan9/" $1) printf("cp ''%s'' ''%s''\n", plan9 "/" $1, pkg "/usr/local/plan9/" $1)
}' $TREE9/dist/filelist |rc }' $TREE9/dist/filelist | rc
if(test -d $i/usr){ if(test -d $i/usr){
@{ @{
cd $i cd $i