Files
imdbref/run.sh
Ismo Vuorinen d4383738cd 2010-07-31
2020-07-15 00:19:21 +03:00

19 lines
328 B
Bash
Executable File

#!/usr/bin/env bash
if [ -n "$1" ]; then
FROM=iso-8859-1
TO=UTF-8
iconv -f $FROM -t $TO $1 > $1.utf8
# process and create .dot
python process.py -f $1.utf8 > $1.dot
# do the image from the .dot
#dot $1.dot -Tpng -v -o $1.png
# iconv -f original_charset -t utf-8 originalfile > newfile
else
echo "source needed"
fi