diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-07-15 01:01:50 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-07-15 01:01:50 +0200 |
commit | 24f52c0e3196d4dbfb4a3c8b32d29a10ad021dac (patch) | |
tree | dd448c45d3c723ea138439b0dbcd3c187d2c5a60 /ttyponies.sh | |
parent | 6a238afdcbc76c07b62640c9f54ccfbba6195e62 (diff) | |
download | ponysay-24f52c0e3196d4dbfb4a3c8b32d29a10ad021dac.tar.gz ponysay-24f52c0e3196d4dbfb4a3c8b32d29a10ad021dac.tar.bz2 ponysay-24f52c0e3196d4dbfb4a3c8b32d29a10ad021dac.zip |
dezebraised and non-kms-comp. ttyponies + auto building of ttyponies
Diffstat (limited to 'ttyponies.sh')
-rwxr-xr-x | ttyponies.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ttyponies.sh b/ttyponies.sh new file mode 100755 index 0000000..bcfbe95 --- /dev/null +++ b/ttyponies.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +for pony in $(ls ponies/); do + echo "building ttypony: $pony" + if [[ `readlink "ponies/$pony"` = '' ]]; then + ponysay2ttyponysay < "ponies/$pony" | unzebra -e | tty2colourfultty -c 1 -e > "ttyponies/$pony" + elif [[ ! -f "ttyponies/$pony" ]]; then + ln -s `readlink "ponies/$pony"` "ttyponies/$pony" + fi +done + |