ai_formatter/compile_data.sh
2024-11-03 13:13:20 +01:00

9 lines
272 B
Bash
Executable File

#!/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"' _ {} \;