Search
lxdream.org :: lxdream :: r1288:fdb8f59143c7
lxdream 0.9.1
released Jun 29
Download Now
changeset1288:fdb8f59143c7
parent1287:dac8f363f1fe
child1289:ef8b0ddb8185
authornkeynes
dateWed Jul 04 12:01:31 2012 +1000 (9 years ago)
Remove use of extended regexes to make porting easier
src/tools/genglsl.c
1.1 --- a/src/tools/genglsl.c Sun Jul 01 13:20:34 2012 +1000
1.2 +++ b/src/tools/genglsl.c Wed Jul 04 12:01:31 2012 +1000
1.3 @@ -186,7 +186,7 @@
1.4 g_free(quoted_opts_arr[count++]);
1.5 }
1.6
1.7 - const char *command = g_strdup_printf("%s -E 's/^#(program|vertex|fragment)/#pragma \\1/' %s | %s %s - > %s",
1.8 + const char *command = g_strdup_printf("%s -e 's/^#program/#pragma program/' -e 's/^#fragment/#pragma fragment/' -e 's/#vertex/#pragma vertex/' %s | %s %s - > %s",
1.9 BUILD_SED_PROG, quoted_filename, BUILD_CPP_PROG, quoted_cpp_opts, tmpname );
1.10 if( system(command) != 0 ) {
1.11 fprintf( stderr, "Error: unable to run preprocessor command '%s' (%s)\n", command, strerror(errno) );
.