diff options
-rwxr-xr-x | dist/debian/mkpkg | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/dist/debian/mkpkg b/dist/debian/mkpkg index 8504b5b9..d8877e76 100755 --- a/dist/debian/mkpkg +++ b/dist/debian/mkpkg @@ -60,7 +60,10 @@ for(i)@{ echo Maintainer: 'Russ Cox <rsc@swtch.com>' echo Description: $desc } >$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 sub("/[^/]+$", "/", dir) if(dir != lastdir){ @@ -69,7 +72,7 @@ for(i)@{ } if($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){ @{ cd $i |