From 82f38ea7d86360e3d0e4984ca4f6589edfbddc39 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 17 Jun 2010 00:11:12 -0500 Subject: [PATCH] Save some forks: * usr/bin/byobu-status * usr/lib/byobu/custom * usr/lib/byobu/release * usr/lib/services --- debian/changelog | 7 +++++-- usr/bin/byobu-status | 6 +++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index a0eafa8f..285b5ca3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,7 +1,10 @@ byobu (2.81) unreleased; urgency=low - Save a fork: - * usr/lib/byobu/custom, usr/lib/byobu/release, usr/lib/services + Save some forks: + * usr/bin/byobu-status + * usr/lib/byobu/custom + * usr/lib/byobu/release + * usr/lib/services -- Dustin Kirkland Wed, 16 Jun 2010 12:46:29 -0500 diff --git a/usr/bin/byobu-status b/usr/bin/byobu-status index 7d786f4e..6ad083bf 100755 --- a/usr/bin/byobu-status +++ b/usr/bin/byobu-status @@ -68,11 +68,11 @@ case "$P" in fi printf "$PKG$VER Detailed Status Navigation\n Expand all - zr\t\tCollapse all - zm\n Expand one - zo\t\tCollapse one - zc\n\n" for i in "/usr/lib/$PKG"/* "$HOME/.$PKG/bin"/*; do - i=$(echo "$i" | sed "s:^.*/::") + i=${i##*/} [ "$i" = "menu" ] && continue script=`find_script $i` - short=`$script --short | sed 's/^\s*//' | sed 's/\s*$//' | sed 's/.{[^}]*}//g'` || true - detail=`$script --detail | sed '/^$/d' | sed 's/^/\t/g'` || true + short=`$script --short | sed -e 's/^\s*//' -e 's/\s*$//' -e 's/.{[^}]*}//g'` || true + detail=`$script --detail | sed -e '/^$/d' -e 's/^/\t/g'` || true printf "%s\n\t(%s)\n" "$short" "$i" [ -n "$detail" ] && printf "%s\n" "$detail" done