ref: fd2a60326dbf1de445f7b66a3616b28c04d99895
parent: 065aab3a7e250bdfb72896b49abf9fb27025a96d
author: stanley lieber <stanley.lieber@gmail.com>
date: Wed Sep 21 13:39:16 EDT 2011
pkg/create: include the program source in the package
--- a/sys/man/1/pkg
+++ b/sys/man/1/pkg
@@ -38,7 +38,7 @@
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 @@
.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 @@
.LP
Install the
.B Go
-programming language.
+programming language:
.sp 1
.EX
% pkg/install go-2011.05.10
--- a/sys/src/cmd/pkg/create
+++ b/sys/src/cmd/pkg/create
@@ -6,8 +6,9 @@
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
--
⑨