summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-03-08 22:27:07 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2009-03-08 22:27:07 +0100
commitc6795cae8dd0f3dac2abbdbb6d7bc49ed45b941c (patch)
treeefb36f4628929ae13010103ca38e9500e2ec05c5 /bin/pkg
parent99b92f9c6fd19e1753e958aae3c62b7660f46e6e (diff)
Support $package and $etc in links file
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/pkg b/bin/pkg
index 1266f21..0d98959 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -14,6 +14,7 @@
## ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
## OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+setopt extended_glob
typeset -a -U triggers
##
@@ -366,7 +367,11 @@ function global_hook {
info "Running make\n"
make
}
- checklinks $CL_OPTIONS
+ # TODO: cover cases where $HOME ends in a /
+ # (just to be on the safe side)
+ checklinks $CL_OPTIONS \
+ --parameter package=${PWD#$HOME/} \
+ --parameter etc=${PWD#$HOME/}/etc
populate_collected $1
update_provides $1
list_update_package $1