From 2e8bb17761e4eabe9750c96f7269551df17ac201 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 14 Jun 2008 19:33:55 +0200 Subject: bin/pkg: *_collected: Also use bin/ --- bin/pkg | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 4d113b4..70f0aaa 100755 --- a/bin/pkg +++ b/bin/pkg @@ -198,6 +198,13 @@ populate_collected () { } } clear_line + if ([ -d bin ]) { + for i in bin/*(*); { + if ([ ! -e $PDIR/.collected/$i ]) { + ln -s ../../$1/$i $PDIR/.collected/$i + } + } + } } # Remove a packages' files from .collected @@ -223,6 +230,13 @@ genocide_collected () { } } clear_line + if ([ -d bin ]) { + for i in bin/*(*); { + if ([ $(readlink $PDIR/.collected/$i) = "../../$1/$i" ]) { + rm -f $PDIR/.collected/$i + } + } + } } -- cgit v1.2.3