bin/release: eliminate one expensive lsb_release call

-Dustin Kirkland <kirkland@ubuntu.com>Thu, 16 Apr 2009 12:42:52 -0500
This commit is contained in:
Dustin Kirkland 2009-04-16 12:43:11 -05:00
commit 9772f393f8
2 changed files with 4 additions and 3 deletions

View file

@ -19,9 +19,9 @@
if which lsb_release >/dev/null; then
# If lsb_release is available, use it
if lsb_release -s -d | grep -qs "^Ubuntu .*\..*\..*$"; then
r=$(lsb_release -s -d)
if echo "$r" | grep -qs "^Ubuntu .*\..*\..*$"; then
# Use the -d if an Ubuntu LTS
r=$(lsb_release -s -d)
printf "\005{=b }%s\005{-} " "$r"
else
# But for other distros the description

3
debian/changelog vendored
View file

@ -6,11 +6,12 @@ screen-profiles (1.45) unreleased; urgency=low
* screen-profiles-status: use home bin scripts, if available first,
then fallback to system-wide, allows for local overrides
* bin/*: route and ifconfig are in /sbin, fully qualify
* bin/release: eliminate one expensive lsb_release call
[ Jon Bernard <bernardj@gmail.com> ]
* debian/control: fix typo in screen-profiles-extras description
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 12:37:21 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 16 Apr 2009 12:42:52 -0500
screen-profiles (1.44-0ubuntu1) jaunty; urgency=low