diff options
-rwxr-xr-x | nvexec | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ #!/bin/bash -sed -re 's/(\S+)\s*:\s*(\S+)/\1 \1_\2/; s/^\s*(\S+)\s+(\S+)\s*=\s*(\S+)\s*$/printf("%u %u %u\\n", \1, \2, \3);/; 1s@^@#include <nouveau/nouveau_class.h>\n#include <stdio.h>\nint main(int argc, char** argv) {\n@; $ s/$/\nreturn 0;\n}/; ' "$@" > temp.c -rm -f && gcc -o temp temp.c && ./temp > input.txt +sed -re 's/(\S+)\s*:\s*(\S+)/\1 \1_\2/; s/^\s*(\S+)\s+(\S+)\s*=(.*)$/printf("%u %u %u\\n", \1, \2, \3);/; 1s@^@#include <nouveau/nouveau_class.h>\n#include <stdio.h>\nint main(int argc, char** argv) {\n@; $ s/$/\nreturn 0;\n}/; ' "$@" > temp.c +gcc -o temp temp.c && ./temp > input.txt sync ./nvexec_raw < input.txt |