This commit is contained in:
anon
2024-11-03 13:13:20 +01:00
parent f8c8f7ef0c
commit 5d47089c2b
7 changed files with 26 additions and 11 deletions

8
compile_data.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
[[ $# < 1 ]] && exit 1
find "$1" -type f -name "*.c" \
-exec vim +"set tabstop=8" +"set expandtab" +"retab" +wq {} \; \
-exec sh -c 'converter.out accumulate "$1" > "$1.acc"' _ {} \; \
-exec sh -c 'converter.out normalize "$1" > "$1.norm"' _ {} \;