Aoc passes, and it successfully compiles itself.

This commit is contained in:
2025-01-05 13:56:38 -08:00
parent 9172d88be7
commit 627ca5d91b
6 changed files with 18 additions and 12 deletions

View File

@@ -2,10 +2,10 @@
# script to translate a file from idris to newt
# this is just a first pass, hopefully
mkdir -p port
mkdir -p xlate
find src -type f -name '*.idr' | while read -r file; do
output_file="port/${file#src/}"
output_file="xlate/${file#src/}"
output_file="${output_file%.idr}.newt"
mkdir -p "$(dirname "$output_file")"
if [[ ! -f "$output_file" ]]; then
@@ -49,4 +49,4 @@ find src -type f -name '*.idr' | while read -r file; do
' "$file" > "$output_file"
fi
done
rsync -av done/ port
#rsync -av done/ xlate