bin/release: determine release from /etc/issue if lsb-release not found;

don't use fully qualified path for lsb_release as it seems this has moved
around (see Dapper)
This commit is contained in:
Dustin Kirkland 2009-03-26 14:46:55 -05:00
commit 314bbfea43
2 changed files with 6 additions and 4 deletions

View file

@ -21,8 +21,8 @@
p="release" p="release"
grep -qs "^$p=0$" "$HOME/.screen-profiles/status" && exit 0 grep -qs "^$p=0$" "$HOME/.screen-profiles/status" && exit 0
if [ -x "/usr/bin/lsb_release" ]; then if which lsb_release >/dev/null; then
echo $(/usr/bin/lsb_release -s -i) $(/usr/bin/lsb_release -s -r) echo $(lsb_release -s -i) $(lsb_release -s -r)
elif [ -r "/etc/issue" ]; then elif [ -r "/etc/issue" ]; then
head -n1 /etc/issue | awk '{print $1}' head -n1 /etc/issue | awk '{print $1}'
else else

6
debian/changelog vendored
View file

@ -6,12 +6,14 @@ screen-profiles (1.41) unreleased; urgency=low
* profiles/generate-profiles: reorganize cleaning and echo's * profiles/generate-profiles: reorganize cleaning and echo's
* debian/rules: generate profiles as part of the build, rather than * debian/rules: generate profiles as part of the build, rather than
get-orig-source get-orig-source
* bin/release: determine release from /etc/issue if lsb-release not found * bin/release: determine release from /etc/issue if lsb-release not found;
don't use fully qualified path for lsb_release as it seems this has moved
around (see Dapper)
[ James Wilcox ] [ James Wilcox ]
* bin/updates-available: support SUSE's zypper * bin/updates-available: support SUSE's zypper
-- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 Mar 2009 10:41:23 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 26 Mar 2009 14:46:18 -0500
screen-profiles (1.40-0ubuntu1) jaunty; urgency=low screen-profiles (1.40-0ubuntu1) jaunty; urgency=low