summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstanley lieber <stanley.lieber@gmail.com>2011-09-21 17:39:16 -0500
committerstanley lieber <stanley.lieber@gmail.com>2011-09-21 17:39:16 -0500
commita0a42ebf3f248b691314e701dcd020837a560644 (patch)
tree886157c1d75e8c53716ff86b9e6256ba36e9e4c1
parentc1be51432be86c76518c61e123abb0923a419ded (diff)
pkg/create: include the program source in the package
-rw-r--r--sys/man/1/pkg6
-rwxr-xr-xsys/src/cmd/pkg/create3
2 files changed, 5 insertions, 4 deletions
diff --git a/sys/man/1/pkg b/sys/man/1/pkg
index b7a2d52d0..8ffed75f2 100644
--- a/sys/man/1/pkg
+++ b/sys/man/1/pkg
@@ -38,7 +38,7 @@ then packs it into a
compressed
.IR tar (1)
archive suitable for upload to a package
-repository.
+repository. The source directory should be provided as a full path.
.TP
.I Pkg/install
Install the package
@@ -58,7 +58,7 @@ from the local system.
.SH EXAMPLES
.LP
Create the package
-.B irc7-2011.09.21
+.B irc7-2011.09.21:
.sp 1
.EX
% pkg/create /sys/src/cmd/irc7-2011.09.21
@@ -67,7 +67,7 @@ Create the package
.LP
Install the
.B Go
-programming language.
+programming language:
.sp 1
.EX
% pkg/install go-2011.05.10
diff --git a/sys/src/cmd/pkg/create b/sys/src/cmd/pkg/create
index ec350e731..b251c1b21 100755
--- a/sys/src/cmd/pkg/create
+++ b/sys/src/cmd/pkg/create
@@ -6,8 +6,9 @@ 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
-mkdir /tmp/$i
mk
divergefs -p /tmp/$i /
mk install clean