diff options
author | rsc <devnull@localhost> | 2005-09-13 04:23:42 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-09-13 04:23:42 +0000 |
commit | 7c024ff2d8004a19c5664f54df5d459cb0dad068 (patch) | |
tree | 5cd0b4142fbadd40400ab07a96c84c88a495922f /dist | |
parent | 28c158a5f5980722e8fa287b095c896617ba546c (diff) | |
download | plan9port-7c024ff2d8004a19c5664f54df5d459cb0dad068.tar.gz plan9port-7c024ff2d8004a19c5664f54df5d459cb0dad068.tar.bz2 plan9port-7c024ff2d8004a19c5664f54df5d459cb0dad068.zip |
bin
Diffstat (limited to 'dist')
-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 |