mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-22 04:27:58 +01:00
11 lines
331 B
Bash
Executable file
11 lines
331 B
Bash
Executable file
#!/bin/bash
|
|
|
|
for pony in $(ls --color=no ponies/); do
|
|
echo "building ttypony: $pony"
|
|
if [[ `readlink "ponies/$pony"` = '' ]]; then
|
|
ponysay2ttyponysay < "ponies/$pony" | tty2colourfultty -c 1 -e > "ttyponies/$pony"
|
|
elif [[ ! -f "ttyponies/$pony" ]]; then
|
|
ln -s `readlink "ponies/$pony"` "ttyponies/$pony"
|
|
fi
|
|
done
|
|
|