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
* 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

View file

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