pkg(1): put source files in /sys/src/pkg/

This commit is contained in:
stanley lieber 2012-01-03 20:14:27 -06:00
parent ceec9eee28
commit 930635e22d
3 changed files with 15 additions and 9 deletions

View file

@ -43,7 +43,12 @@ repository. The source directory should be provided as a full path.
.I Pkg/install
Install the package
.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
.I Pkg/list
List packages available from the current repository.

View file

@ -5,14 +5,14 @@ d=$1
echo Creating $i
C=`{pwd}
@{
rfork en
mkdir -p /tmp/$i/files/sys/src/cmd/$i
dircp $d /tmp/$i/files/sys/src/cmd/$i
cd $d
mk
divergefs -p /tmp/$i /
mk install clean
unmount /
rfork en
mkdir -p /tmp/$i/files/sys/src/pkg/$i
dircp $d /tmp/$i/files/sys/src/pkg/$i
cd $d
mk
divergefs -p /tmp/$i /
mk install clean
unmount /
}
cd /tmp/$i/files
rm -r env

View file

@ -14,5 +14,6 @@ if(test -s /sys/lib/pkg/$1) {
echo M $fs($i) NOT DELETING
}
}
rm -rf /sys/src/pkg/$1
rm /sys/lib/pkg/$1
}