From c5df3d3602ac24bcf6f0fefcdab956be09837d55 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sun, 18 Dec 2011 21:12:09 -0600 Subject: [PATCH] * usr/bin/byobu-janitor: - clean up some old upgrade cruft --- debian/changelog | 2 ++ usr/bin/byobu-janitor | 38 -------------------------------------- 2 files changed, 2 insertions(+), 38 deletions(-) diff --git a/debian/changelog b/debian/changelog index dc3a9b28..0e6bfd62 100644 --- a/debian/changelog +++ b/debian/changelog @@ -12,6 +12,8 @@ byobu (4.55) unreleased; urgency=low until we have a better way of detecting it * usr/lib/byobu/menu: LP: #881993 - fix escape key determination + * usr/bin/byobu-janitor: + - clean up some old upgrade cruft [ Will Ellwood ] * usr/lib/byobu/disk: LP: #904824 diff --git a/usr/bin/byobu-janitor b/usr/bin/byobu-janitor index 52bb1e00..7535938c 100755 --- a/usr/bin/byobu-janitor +++ b/usr/bin/byobu-janitor @@ -81,44 +81,6 @@ for f in status statusrc; do fi done -# Affects: Upgrades from <= byobu-2.11 -# The status scripts used to have hyphens in their name, but now use -# underscores such that we can source the file as a shell snippet; -# fix existing status configuration. -$SED -i -e "s/\([^=]+\)-\([^=]+\)=/\1_\2=/g" "$BYOBU_CONFIG_DIR/status" -$SED -i -e "s/^disk-.*=/disk=/" "$BYOBU_CONFIG_DIR/status" -$SED -i -e "s/^network-.*=/network=/" "$BYOBU_CONFIG_DIR/status" - -# Affects: Upgrades from <= byobu-2.16 -# screen-launcher was renamed byobu-launcher; if the user has byobu -# set to auto-launch, update their configuration to use the byobu-launcher -if grep -qs " screen-launcher" "$HOME/.profile"; then - byobu-launcher-install -fi - -# Affects: Upgrades from <= byobu-2.25 -# Collapse separate status config files into the sourced config -for i in disk network distro logo; do - if [ -r "$BYOBU_CONFIG_DIR/$i" ]; then - val=`cat $BYOBU_CONFIG_DIR/$i` - uc=`echo "$i" | tr "[:lower:]" "[:upper:]"` - case $i in - disk|network) - key="MONITORED_"$uc ;; - distro|logo) - key="$uc" ;; - esac - echo "$key=\"$val\"" >> "$BYOBU_CONFIG_DIR/statusrc" - rm "$BYOBU_CONFIG_DIR/$i" - fi -done - -# Affects: Upgrades from <= byobu-2.57 that autolaunch -# If the global autolaunch is on, then remove duplicate entry in ~/.profile -if [ -h "/etc/profile.d/Z98-$PKG.sh" ]; then - $SED -i -e "/ $PKG-launch/d" "$HOME"/.profile || true -fi - # Affects: Upgrades from <= byobu-2.70 that autolaunch # Update the byobu-launch line, if necessary if grep -qs " $PKG-launch$" "$HOME"/.profile; then