1BEGIN {
2    print "# Autogenerated by gengetopt.awk"
3    print "purpose \"Image Viewer using OpenGL\"";
4    print;
5}
6
7/^STR / {
8    match($0, /^.*"(.*)".*"(.*)".*"(.*)".*"(.*)"/, array);
9    printf "option \"%s\" %s \"%s\" string typestr=\"%s\" no\n", $2, $3, array[1], array[2];
10}
11
12/^OSTR / {
13    match($0, /^.*"(.*)".*"(.*)".*"(.*)".*"(.*)"/, array);
14    printf "option \"%s\" %s \"%s\" string typestr=\"%s\" no argoptional\n", $2, $3, array[1], array[2];
15}
16
17/^FLAG / {
18    match($0, /"(.*)"/, array);
19    printf "option \"%s\" %s \"%s\" string typestr=\"on|off\" no argoptional\n", $2, $3, array[1];
20}
21