summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-09-09 20:46:23 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-09-09 20:46:23 +0200
commit46da59148a2660f5dc947639fc25a1a375b45881 (patch)
tree75eee316a20715cb621238743c8a048fdc82a49e /bin
parent2b8922a8dc13a590b87fff9e2d7f48dd114ae896 (diff)
ct: {populate,genocide}_collected: Message improvements
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ct8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ct b/bin/ct
index 7645107..7417e30 100755
--- a/bin/ct
+++ b/bin/ct
@@ -579,7 +579,7 @@ function populate_collected {
if [[ ! -d bin && ! -d man ]] {
return
}
- info "Processing documentation\n"
+ info "Processing documentation and binaries\n"
for man in man/*/*(N); {
section=${man:h:t}
manpage=${man:t}
@@ -617,8 +617,11 @@ function populate_collected {
function genocide_collected {
typeset i file man manual section
cd $PKG_DIR/$1 || return
+ if [[ ! -d bin && ! -d man ]] {
+ return
+ }
wrap_info $1
- info "Removing documentation"
+ info "Removing documentation and binaries\n"
for man in man/*/*(N); {
section=${man:h:t}
manual=${man:t}
@@ -629,7 +632,6 @@ function genocide_collected {
for file in bin/*(N); {
rm -f $PKG_DIR/.collected/man/man1/${file:t}.1
}
- clear_line
for file in bin/*(-*N); {
if [[ $(readlink $HOME/$file) == (../${PKG_DIR//$HOME\/}|$PKG_DIR)/$1/$file ]] {
rm -f $HOME/$file