2 # $XConsortium: mkfallbk.sh /main/2 1995/07/19 17:10:17 drk $
4 # this file will make a source file for the fallback resources from
5 # the app-defaults file.
7 # quote all double quotes (i.e., `"' becomes `\"') and
8 # strip off all comments (anything after a `!')...
12 # now let's convert the rest with awk...
15 printf "#include <Xm/Xm.h>\n\n"; # to define String...
16 printf "String fallbackResources[] = {\n"; # preamble...
22 if (length($0) == 0) {
26 # if this is not a continuation of the previous line, begin it with
32 # if the last char is a backslash \, then it is continued on the
34 if (substr($0, length($0), 1) == "\\") {
40 # print out the line...
43 # if it is not continued on the next line, then terminate the string...
48 # print the newline...