bin
This commit is contained in:
parent
28c158a5f5
commit
7c024ff2d8
1 changed files with 5 additions and 2 deletions
7
dist/debian/mkpkg
vendored
7
dist/debian/mkpkg
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue