* 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
This commit is contained in:
Dustin Kirkland 2009-01-27 16:02:43 -05:00
commit 7f1edfc5cf
5 changed files with 44 additions and 3 deletions

8
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Tue, 27 Jan 2009 15:04:12 -0500 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 27 Jan 2009 15:47:46 -0500
screen-profiles (1.16-0ubuntu1) jaunty; urgency=low screen-profiles (1.16-0ubuntu1) jaunty; urgency=low

1
debian/install vendored
View file

@ -11,6 +11,7 @@ profiles/ubuntu usr/share/screen-profiles/profiles
profiles/ubuntu-dark usr/share/screen-profiles/profiles profiles/ubuntu-dark usr/share/screen-profiles/profiles
keybindings/common usr/share/screen-profiles/keybindings keybindings/common usr/share/screen-profiles/keybindings
windows/common usr/share/screen-profiles/windows windows/common usr/share/screen-profiles/windows
screen usr/bin
select-screen-profile usr/bin select-screen-profile usr/bin
screen-profiles-helper usr/bin screen-profiles-helper usr/bin
screen-launcher-install usr/share/screen-profiles/ screen-launcher-install usr/share/screen-profiles/

7
debian/postrm vendored Normal file
View file

@ -0,0 +1,7 @@
#!/bin/sh -e
if [ "$1" = "remove" ]; then
dpkg-divert --package screen-profiles --rename --remove /usr/bin/screen || true
fi
#DEBHELPER#

7
debian/preinst vendored Normal file
View file

@ -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#

24
screen Executable file
View file

@ -0,0 +1,24 @@
#!/bin/sh
#
# screen wrapper script
# Copyright (C) 2008 Canonical Ltd.
#
# Authors: Dustin Kirkland <kirkland@canonical.com>
#
# 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 <http://www.gnu.org/licenses/>.
if [ ! -r "$HOME/.screenrc-profile" ]; then
/usr/bin/select-screen-profile
fi
exec /usr/bin/screen.real "$@"