~ubuntu-branches/debian/squeeze/openttd/squeeze

« back to all changes in this revision

Viewing changes to projects/generate

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Matthijs Kooijman, Jordi Mallach
  • Date: 2009-04-15 18:22:10 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090415182210-22ktb8kdbp2tf3bm
[ Matthijs Kooijman ]
* New upstream release.
* Remove Debian specific desktop file, upstream provides one now. 
* Add debian/watch file.

[ Jordi Mallach ]
* Bump Standards-Version to 3.8.1, with no changes required.
* Move to debhelper compat 7. Bump Build-Depends accordingly.
* Use dh_prep.
* Add "set -e" to config script.
* Remove a few extra doc files that get installed by upstream Makefile.
* Add more complete copyright information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
 
30
30
# First, collect the list of Windows files
 
31
allegro_config=""
31
32
sdl_config="1"
32
33
png_config="1"
33
34
os="MSVC"
55
56
        done
56
57
}
57
58
 
 
59
grep '\.h' "$ROOT_DIR/source.list" | grep -v '../objs/langs/table/strings.h' | sed 's/  //' | sort > tmp.headers.source.list
 
60
find "$ROOT_DIR/src" \( -iname "*.h" -or -iname "*.hpp" \) -and -not -ipath "*/.svn/*" | sed "s~$ROOT_DIR/src/~~" | sort > tmp.headers.src
 
61
if [ -n "`diff tmp.headers.source.list tmp.headers.src`" ]; then
 
62
        echo "The following headers are missing in source.list and not in /src/ or vice versa."
 
63
        diff tmp.headers.source.list tmp.headers.src | grep '[<>]' | sort
 
64
        echo ""
 
65
fi
 
66
rm tmp.headers.*
 
67
 
58
68
load_main_data() {
59
69
        # Read the source.list and process it
60
70
        RES="`cat $1 | tr '\r' '\n' | awk '
69
79
 
70
80
                        deep += 1;
71
81
 
 
82
                        if ($0 == "ALLEGRO"     && "'$allegro_config'" == "")      { next; }
72
83
                        if ($0 == "SDL"         && "'$sdl_config'" == "")          { next; }
73
84
                        if ($0 == "PNG"         && "'$png_config'" == "")          { next; }
74
85
                        if ($0 == "OSX"         && "'$os'" != "OSX")               { next; }
75
86
                        if ($0 == "OS2"         && "'$os'" != "OS2")               { next; }
76
87
                        if ($0 == "PSP"         && "'$os'" != "PSP")               { next; }
 
88
                        if ($0 == "DOS"         && "'$os'" != "DOS")               { next; }
77
89
                        if ($0 == "DEDICATED"   && "'$enable_dedicated'" != "1")   { next; }
78
90
                        if ($0 == "COCOA"       && "'$with_cocoa'" == "0")         { next; }
79
91
                        if ($0 == "BEOS"        && "'$os'" != "BEOS")              { next; }
83
95
                        if ($0 == "MSVC"        && "'$os'" != "MSVC")              { next; }
84
96
                        if ($0 == "DIRECTMUSIC" && "'$enable_directmusic'" != "1") { next; }
85
97
                        if ($0 == "LIBTIMIDITY" && "'$libtimidity'" == "" )        { next; }
86
 
                        if ($0 == "NO_THREADS"  && "'$with_threads'" == "0")       { next; }
 
98
                        if ($0 == "HAVE_THREAD" && "'$with_threads'" == "0")       { next; }
87
99
 
88
100
                        skip += 1;
89
101
 
129
141
        RES=""
130
142
        for i in `ls $1`
131
143
        do
132
 
                i=`basename $i | sed s/.txt$//g`
 
144
                i=`basename $i | sed s~.txt$~~g`
133
145
                RES="$RES
134
146
                <File
135
147
                        RelativePath=\"..\\src\\lang\\"$i".txt\"