]> icculus.org git repositories - divverent/nexuiz.git/blob - misc/gtkradiant/mergepatches.sh
add GtkRadiant patch set
[divverent/nexuiz.git] / misc / gtkradiant / mergepatches.sh
1 #!/bin/sh
2
3 # script that generates the combined patch from the source patches
4
5 # if this is run as CGI, add a header
6 if [ -n "$REQUEST_METHOD" ]; then
7         echo "Content-type: text/plain"
8         echo ""
9 fi
10
11 cat <<'EOF'
12 NOTE: this patch set is autogenerated from the "singlepatches" subdirectory of nexuiz/trunk/misc.
13
14 Do not commit changes to THIS!
15
16 Always run
17         sh mergepatches.sh > gtkradiant-nexuiz-patchset.diff
18 before committing new singlepatches!
19
20
21
22 EOF
23
24 cd singlepatches
25
26 pq=
27 pr=
28 for X in [!_]*.diff; do
29         cat "$X"
30         Y=${X%.diff}
31         Z=${Y%%-*}
32         Y=${Y#*-}
33         [ "$Z" = "q3map2" ] || pr="$pr-$Y"
34         [ "$Z" = "gtkradiant" ] || pq="$pq-$Y"
35 done
36
37 cat <<EOF
38 Index: tools/quake3/q3map2/q3map2.h
39 ===================================================================
40 --- tools/quake3/q3map2/q3map2.h        (revision 193)
41 +++ tools/quake3/q3map2/q3map2.h        (working copy)
42 @@ -35,8 +35,8 @@
43  
44  
45  /* version */
46 -#define Q3MAP_VERSION  "2.5.17"
47 -#define Q3MAP_MOTD             "Last one turns the lights off"
48 +#define Q3MAP_VERSION  "2.5.17-div0$pq"
49 +#define Q3MAP_MOTD             "Blackhole Box ate all the light"
50  
51  
52  
53 Index: include/version.default
54 ===================================================================
55 --- include/version.default     (revision 193)
56 +++ include/version.default     (working copy)
57 @@ -1 +1 @@
58 -1.5.0
59 +1.5.0-div0$pr
60 EOF