diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-07-17 01:07:47 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-07-17 01:07:47 +0200 |
commit | 3c888482e41a7c744c8c35e31f49fd63246caa44 (patch) | |
tree | 733e3bb93c9435fda5cd25442df2f25be01a9e4a /ttyponies.sh | |
parent | 68d1b029712a62a11faa515e9b0303477d1d3ca7 (diff) | |
parent | 8c986f062a12064234cd27d143d4e967ff4aba06 (diff) | |
download | ponysay-3c888482e41a7c744c8c35e31f49fd63246caa44.tar.gz ponysay-3c888482e41a7c744c8c35e31f49fd63246caa44.tar.bz2 ponysay-3c888482e41a7c744c8c35e31f49fd63246caa44.zip |
Merge remote-tracking branch 'upstream/master'
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..4913119 --- /dev/null +++ b/ttyponies.sh @@ -0,0 +1,11 @@ +#!/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 + |