~ubuntu-branches/ubuntu/raring/nethack/raring

« back to all changes in this revision

Viewing changes to debian/gnome/nethack-tty.sh

  • Committer: Package Import Robot
  • Author(s): Vincent Cheng, Bernhard R. Link, Vincent Cheng
  • Date: 2012-06-11 00:47:38 UTC
  • mfrom: (3.1.9 sid)
  • Revision ID: package-import@ubuntu.com-20120611004738-3fy8b3wi0j45y2oq
Tags: 3.4.3-14
* Team upload.

[ Bernhard R. Link ]
* switch to "3.0 (quilt)"
* bump Standards-Version
* modernize debian/rules:
- use dpkg-buildflags
- support build-arch/-indep
- make parallel safe
- don't avoid make errors
* add patch so it can compile with -Werror=format-security
* drop no longer needed patches (-qt and -gnome are gone)
* don't use /dev/null as install template (Closes: 644647)
* drop nethack-common menu (both -console and -x11 have one)

[ Vincent Cheng ]
* Adopt package. (Closes: #673584)
  - Change Maintainer to Debian Games Team.
  - Add myself to Uploaders.
* Modify 0006-Common-config.h-for-all-binary-packages.patch to enable
  AUTOPICKUP_EXCEPTIONS. (Closes: #329318)
* Modify 0011-Pasi-Kallinen-s-patch-to-add-colors-to-inventory-ite.patch
  and 0017-Debian-and-Linux-specifics-defined-in-unixconf.h.patch; add
  0021-fix-kfreebsd-ftbfs.patch to fix FTBFS on kfreebsd.
* Convert debian/copyright to DEP-5 machine-readable format.
* Use dh_lintian to install overrides instead of manually installing them
  in debian/rules.
* Add watch file.
* Add Homepage field in debian/control.
* Add Vcs-* fields in debian/control.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
 
3
 
set -e
4
 
 
5
 
HACKSTYLE=gnome
6
 
 
7
 
if [ -z "$NETHACKOPTIONS" ]; then
8
 
  if [ -e $HOME/.nethackrc ]; then
9
 
    NETHACKOPTIONS=$HOME/.nethackrc
10
 
    export NETHACKOPTIONS
11
 
  else
12
 
    NETHACKOPTIONS=/etc/nethack/nethackrc.tty
13
 
    export NETHACKOPTIONS
14
 
  fi
15
 
fi
16
 
 
17
 
HACKDIR=/usr/lib/games/nethack
18
 
export HACKDIR
19
 
HACK=$HACKDIR/nethack-$HACKSTYLE
20
 
 
21
 
# see if we can find the full path name of PAGER, so help files work properly
22
 
# assume that if someone sets up a special variable (HACKPAGER) for NetHack,
23
 
# it will already be in a form acceptable to NetHack
24
 
# ideas from brian@radio.astro.utoronto.ca
25
 
if test \( "xxx$PAGER" != xxx \) -a \( "xxx$HACKPAGER" = xxx \)
26
 
then
27
 
 
28
 
        HACKPAGER=$PAGER
29
 
 
30
 
#       use only the first word of the pager variable
31
 
#       this prevents problems when looking for file names with trailing
32
 
#       options, but also makes the options unavailable for later use from
33
 
#       NetHack
34
 
        for i in $HACKPAGER
35
 
        do
36
 
                HACKPAGER=$i
37
 
                break
38
 
        done
39
 
 
40
 
        if test ! -f $HACKPAGER
41
 
        then
42
 
                IFS=:
43
 
                for i in $PATH
44
 
                do
45
 
                        if test -f $i/$HACKPAGER
46
 
                        then
47
 
                                HACKPAGER=$i/$HACKPAGER
48
 
                                export HACKPAGER
49
 
                                break
50
 
                        fi
51
 
                done
52
 
                IFS='   '
53
 
        fi
54
 
        if test ! -f $HACKPAGER
55
 
        then
56
 
                echo Cannot find $PAGER -- unsetting PAGER.
57
 
                unset HACKPAGER
58
 
                unset PAGER
59
 
        fi
60
 
fi
61
 
 
62
 
cd $HACKDIR
63
 
 
64
 
exec $HACK "$@" $ARGS