~ubuntu-branches/ubuntu/gutsy/xplanet/gutsy

« back to all changes in this revision

Viewing changes to test/00/t0008a.sh

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2007-04-04 15:30:32 UTC
  • Revision ID: james.westby@ubuntu.com-20070404153032-osas690x0ra71goz
Tags: 1.2.0-3
Fix FTBFS with gcc-4.3, missing #includes, thanks to Martin Michlmayr for
the patch (Closes: #417782).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
# test for some copyright errors
4
 
5
 
 
6
 
tmp=/tmp/$$
7
 
here=$(pwd)
8
 
 
9
 
if [ $? -ne 0 ]; then exit 1; fi
10
 
 
11
 
fail()
12
 
{
13
 
 
14
 
    echo FAILED 1>&2
15
 
    cd $here
16
 
    rm -fr $tmp
17
 
    exit 1
18
 
 
19
 
}
20
 
 
21
 
pass()
22
 
{
23
 
 
24
 
    cd $here
25
 
    rm -fr $tmp
26
 
    exit 0
27
 
 
28
 
}
29
 
 
30
 
trap "fail" 1 2 3 15
31
 
 
32
 
copyright=$here/debian/tmp/usr/share/doc/xplanet/copyright
33
 
 
34
 
# "Debian GNU/Linux" upsets Hurd porters
35
 
 
36
 
grep -qi linux $copyright
37
 
if [ $? -ne 1 ]; then fail; fi;
38
 
 
39
 
# Check for old place of GPL
40
 
 
41
 
grep -q "/usr/doc/copyright/GPL" $copyright
42
 
if [ $? -ne 1 ]; then fail; fi;
43
 
 
44
 
# Check for new, correct place of GPL
45
 
 
46
 
grep -q "/usr/share/common-licenses/GPL" $copyright
47
 
if [ $? -ne 0 ]; then fail; fi;
48
 
 
49
 
pass