This commit is contained in:
Murphy 2024-05-20 19:00:41 -04:00
parent 862ff4e52a
commit d51b95a12c
Signed by: freya
GPG key ID: 744AB800E383AE52

View file

@ -24,7 +24,7 @@ transpile() {
out="$2"
printf "" > "$out"
printf "<?php /* Copyright (c) 2024 Freya Murphy */\n\n" > "$out";
grep "\$lang" < "$file" | xargs -d'\n' -I{} bash -c 'handle_line "$@"' _ {} >> "$out"
grep "\$lang" < "$file" | xargs -n1 -I{} bash -c 'handle_line "$@"' _ {} >> "$out"
}
transpile "$1" "$2"