1
0
Fork 0
mirror of https://github.com/zeldaret/oot.git synced 2025-07-13 11:24:40 +00:00
oot/tools/reencode.sh

11 lines
184 B
Bash
Executable file

#!/bin/bash
set -e
srcfile="${@: -1}"
tempfile=`mktemp --tmpdir oot_XXXXXXXX.c`
iconv -f UTF-8 -t EUC-JP -o "$tempfile" "$srcfile"
"${@:1:$# - 1}" -I `dirname $srcfile` $tempfile