diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-09 20:46:23 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-09-09 20:46:23 +0200 |
commit | 46da59148a2660f5dc947639fc25a1a375b45881 (patch) | |
tree | 75eee316a20715cb621238743c8a048fdc82a49e | |
parent | 2b8922a8dc13a590b87fff9e2d7f48dd114ae896 (diff) |
ct: {populate,genocide}_collected: Message improvements
-rwxr-xr-x | bin/ct | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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 |