pkg(1): put source files in /sys/src/pkg/
This commit is contained in:
parent
ceec9eee28
commit
930635e22d
3 changed files with 15 additions and 9 deletions
|
@ -43,7 +43,12 @@ repository. The source directory should be provided as a full path.
|
||||||
.I Pkg/install
|
.I Pkg/install
|
||||||
Install the package
|
Install the package
|
||||||
.I name
|
.I name
|
||||||
from the current repository.
|
from the current repository, unpacking the executables in
|
||||||
|
.B /$cputype/bin/
|
||||||
|
or
|
||||||
|
.B /rc/bin/
|
||||||
|
and the source in
|
||||||
|
.B /sys/src/pkg/.
|
||||||
.TP
|
.TP
|
||||||
.I Pkg/list
|
.I Pkg/list
|
||||||
List packages available from the current repository.
|
List packages available from the current repository.
|
||||||
|
|
|
@ -5,14 +5,14 @@ d=$1
|
||||||
echo Creating $i
|
echo Creating $i
|
||||||
C=`{pwd}
|
C=`{pwd}
|
||||||
@{
|
@{
|
||||||
rfork en
|
rfork en
|
||||||
mkdir -p /tmp/$i/files/sys/src/cmd/$i
|
mkdir -p /tmp/$i/files/sys/src/pkg/$i
|
||||||
dircp $d /tmp/$i/files/sys/src/cmd/$i
|
dircp $d /tmp/$i/files/sys/src/pkg/$i
|
||||||
cd $d
|
cd $d
|
||||||
mk
|
mk
|
||||||
divergefs -p /tmp/$i /
|
divergefs -p /tmp/$i /
|
||||||
mk install clean
|
mk install clean
|
||||||
unmount /
|
unmount /
|
||||||
}
|
}
|
||||||
cd /tmp/$i/files
|
cd /tmp/$i/files
|
||||||
rm -r env
|
rm -r env
|
||||||
|
|
|
@ -14,5 +14,6 @@ if(test -s /sys/lib/pkg/$1) {
|
||||||
echo M $fs($i) NOT DELETING
|
echo M $fs($i) NOT DELETING
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rm -rf /sys/src/pkg/$1
|
||||||
rm /sys/lib/pkg/$1
|
rm /sys/lib/pkg/$1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue