mirror of
https://github.com/ivuorinen/imdbref.git
synced 2026-01-26 03:14:09 +00:00
19 lines
328 B
Bash
Executable File
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
|