Save a fork:

* usr/lib/byobu/custom, usr/lib/byobu/release
This commit is contained in:
Dustin Kirkland 2010-06-16 23:35:18 -05:00
commit 8a0cd025cd
2 changed files with 15 additions and 11 deletions

3
debian/changelog vendored
View file

@ -1,6 +1,7 @@
byobu (2.81) unreleased; urgency=low byobu (2.81) unreleased; urgency=low
* usr/lib/byobu/custom: save a fork Save a fork:
* usr/lib/byobu/custom, usr/lib/byobu/release
-- Dustin Kirkland <kirkland@ubuntu.com> Wed, 16 Jun 2010 12:46:29 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Wed, 16 Jun 2010 12:46:29 -0500

View file

@ -35,16 +35,19 @@ elif which lsb_release >/dev/null 2>&1; then
fi fi
# If lsb_release is available, use it # If lsb_release is available, use it
r=$(lsb_release -s -d) r=$(lsb_release -s -d)
if echo "$r" | grep -qs "^Ubuntu .*\..*\..*$"; then case "$r" in
Ubuntu*.*.*)
# Use the -d if an Ubuntu LTS # Use the -d if an Ubuntu LTS
DISTRO="$r" DISTRO="$r"
else ;;
*)
# But for other distros the description # But for other distros the description
# is too long, so build from -i and -r # is too long, so build from -i and -r
i=$(lsb_release -s -i) i=$(lsb_release -s -i)
r=$(lsb_release -s -r) r=$(lsb_release -s -r)
DISTRO="$i $r" DISTRO="$i $r"
fi ;;
esac
elif [ -r "/etc/palm-build-info" ]; then elif [ -r "/etc/palm-build-info" ]; then
# Palm Pre hack # Palm Pre hack
DISTRO=$(grep "^PRODUCT_VERSION_STRING=Palm " /etc/palm-build-info | sed "s/^.*=Palm //") DISTRO=$(grep "^PRODUCT_VERSION_STRING=Palm " /etc/palm-build-info | sed "s/^.*=Palm //")