diff --git a/debian/changelog b/debian/changelog index 7cd90b16..f4e60df6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,10 @@ -screen-profiles (1.17) UNRELEASED; urgency=low +screen-profiles (1.17-0ubuntu1) jaunty; urgency=low - * + * screen: wrapper script for calling select-screen-profile on a per-user, + first-run basis + * preinst, postrm: maintainer scripts to dpkg-divert screen to screen.real - -- Dustin Kirkland Tue, 27 Jan 2009 15:04:12 -0500 + -- Dustin Kirkland Tue, 27 Jan 2009 15:47:46 -0500 screen-profiles (1.16-0ubuntu1) jaunty; urgency=low diff --git a/debian/install b/debian/install index 2fee527f..7c2bb96d 100644 --- a/debian/install +++ b/debian/install @@ -11,6 +11,7 @@ profiles/ubuntu usr/share/screen-profiles/profiles profiles/ubuntu-dark usr/share/screen-profiles/profiles keybindings/common usr/share/screen-profiles/keybindings windows/common usr/share/screen-profiles/windows +screen usr/bin select-screen-profile usr/bin screen-profiles-helper usr/bin screen-launcher-install usr/share/screen-profiles/ diff --git a/debian/postrm b/debian/postrm new file mode 100644 index 00000000..17c090f9 --- /dev/null +++ b/debian/postrm @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "$1" = "remove" ]; then + dpkg-divert --package screen-profiles --rename --remove /usr/bin/screen || true +fi + +#DEBHELPER# diff --git a/debian/preinst b/debian/preinst new file mode 100644 index 00000000..70933a30 --- /dev/null +++ b/debian/preinst @@ -0,0 +1,7 @@ +#!/bin/sh -e + +if [ "install" = "$1" ] || [ "upgrade" = "$1" ]; then + dpkg-divert --package screen-profiles --divert /usr/bin/screen.real --rename /usr/bin/screen +fi + +#DEBHELPER# diff --git a/screen b/screen new file mode 100755 index 00000000..47faca42 --- /dev/null +++ b/screen @@ -0,0 +1,24 @@ +#!/bin/sh +# +# screen wrapper script +# Copyright (C) 2008 Canonical Ltd. +# +# Authors: Dustin Kirkland +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, version 3 of the License. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + + +if [ ! -r "$HOME/.screenrc-profile" ]; then + /usr/bin/select-screen-profile +fi +exec /usr/bin/screen.real "$@"