2362
2362
( cd $(srcdir) && echo "/* This is a generated file. See swfdec_as_strings.c for details. */" \
2363
2363
&& echo "#ifndef _SWFDEC_AS_STRINGS_H_" \
2364
2364
&& echo "#define _SWFDEC_AS_STRINGS_H_" \
2365
2366
&& echo "extern const char swfdec_as_strings[];" \
2366
2367
&& grep " SWFDEC_AS_CONSTANT_STRING" swfdec_as_strings.c \
2367
2368
| sed "s/.*(\"\(.*\)\").*/\1/" \
2368
2369
| LC_ALL="C" $(AWK) '{ if ($$0 == "") name = "EMPTY"; else if ($$0 == ",") name = "COMMA"; else if ($$0 == "/") name = "SLASH"; else name = $$0; gsub("[^a-zA-Z0-9]","_",name); print "#define SWFDEC_AS_STR_" name " &swfdec_as_strings[" x + 1 "]"; x = x + length ($$0) + 2 }' \
2369
2371
&& echo "#endif" ) > xgen-sas \
2370
2372
&& (cmp -s xgen-sas swfdec_as_strings.h || cp xgen-sas swfdec_as_strings.h ) \