Added some code to peer into a data structure in Maemian/Schedule.pm. Also added the
[maemian] / nokia-lintian / testset / scripts / gccbug.dpatch
1 #! /bin/sh -e
2
3 # DP: Use sensible-editor instead of vi as fallback editor
4
5 # Taken from gcc-4.1-source.  Chokes bash -n (due to the patch) despite being
6 # a valid dpatch, so don't warn about it if it's in /usr/src.
7
8 dir=
9 if [ $# -eq 3 -a "$2" = '-d' ]; then
10     pdir="-d $3"
11     dir="$3/"
12 elif [ $# -ne 1 ]; then
13     echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
14     exit 1
15 fi
16 case "$1" in
17     -patch)
18         patch $pdir -f --no-backup-if-mismatch -p0 < $0
19         ;;
20     -unpatch)
21         patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
22         ;;
23     *)
24         echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
25         exit 1
26 esac
27 exit 0
28
29 --- gcc/gccbug.in~      2003-03-01 00:51:42.000000000 +0100
30 +++ gcc/gccbug.in       2003-03-02 12:08:36.000000000 +0100
31 @@ -134,7 +134,7 @@
32  # If they don't have a preferred editor set, then use
33  if [ -z "$VISUAL" ]; then
34    if [ -z "$EDITOR" ]; then
35 -    EDIT=vi
36 +    EDIT=/usr/bin/sensible-editor
37    else
38      EDIT="$EDITOR"
39    fi