Do not return NULL as boolean from wonder_is_lost() nor wonder_is_built()
[freeciv.git] / client / gui-gtk-2.0 / rc2c
blob59be2ce3aa5999f0aff775e4593917ae8101a41b
1 #!/bin/sh
3 # rc2c : Convert resource file to C strings decls, based on ad2c.
5 # George Ferguson, ferguson@cs.rcohester.edu, 12 Nov 1990.
6 # 19 Mar 1991 : gf
7 # Made it self-contained.
8 # 6 Jan 1992 : mycroft@gnu.ai.mit.edu (Charles Hannum)
9 # Removed use of "-n" and ":read" label since Gnu and
10 # IBM sed print pattern space on "n" command. Still works
11 # with Sun sed, of course.
12 # 7 Jan 1992: matthew@sunpix.East.Sun.COM (Matthew Stier)
13 # Escape quotes after escaping backslashes.
14 # 4 Mar 2000: vasc@rnl.ist.utl.pt (Vasco Costa)
15 # Modified to convert Gtk+ resource files instead of
16 # X app-default files.
19 sed '
20 /^!/d
21 /^$/d
22 s/\\/\\\\/g
23 s/\\$//g
24 s/"/\\"/g
25 s/^/"/
26 : test
27 /\\$/b slash
28 s/$/\\n"/
31 : slash
33 /^!/d
34 /^$/d
35 s/"/\\"/g
36 s/\\\\/\\/g
37 s/\\n/\\\\n/g
38 s/\\t/\\\\t/g
39 s/\\f/\\\\f/g
40 s/\\b/\\\\b/g
41 b test' "$@"