pkg/create: include the program source in the package

This commit is contained in:
stanley lieber 2011-09-21 17:39:16 -05:00
parent c1be51432b
commit a0a42ebf3f
2 changed files with 5 additions and 4 deletions

View file

@ -38,7 +38,7 @@ then packs it into a
compressed compressed
.IR tar (1) .IR tar (1)
archive suitable for upload to a package archive suitable for upload to a package
repository. repository. The source directory should be provided as a full path.
.TP .TP
.I Pkg/install .I Pkg/install
Install the package Install the package
@ -58,7 +58,7 @@ from the local system.
.SH EXAMPLES .SH EXAMPLES
.LP .LP
Create the package Create the package
.B irc7-2011.09.21 .B irc7-2011.09.21:
.sp 1 .sp 1
.EX .EX
% pkg/create /sys/src/cmd/irc7-2011.09.21 % pkg/create /sys/src/cmd/irc7-2011.09.21
@ -67,7 +67,7 @@ Create the package
.LP .LP
Install the Install the
.B Go .B Go
programming language. programming language:
.sp 1 .sp 1
.EX .EX
% pkg/install go-2011.05.10 % pkg/install go-2011.05.10

View file

@ -6,8 +6,9 @@ echo Creating $i
C=`{pwd} C=`{pwd}
@{ @{
rfork en rfork en
mkdir -p /tmp/$i/files/sys/src/cmd/$i
dircp $d /tmp/$i/files/sys/src/cmd/$i
cd $d cd $d
mkdir /tmp/$i
mk mk
divergefs -p /tmp/$i / divergefs -p /tmp/$i /
mk install clean mk install clean