aboutsummaryrefslogtreecommitdiff
path: root/ttyponies.sh
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2012-07-17 01:07:47 +0200
committerMattias Andrée <maandree@operamail.com>2012-07-17 01:07:47 +0200
commit3c888482e41a7c744c8c35e31f49fd63246caa44 (patch)
tree733e3bb93c9435fda5cd25442df2f25be01a9e4a /ttyponies.sh
parent68d1b029712a62a11faa515e9b0303477d1d3ca7 (diff)
parent8c986f062a12064234cd27d143d4e967ff4aba06 (diff)
downloadponysay-3c888482e41a7c744c8c35e31f49fd63246caa44.tar.gz
ponysay-3c888482e41a7c744c8c35e31f49fd63246caa44.tar.bz2
ponysay-3c888482e41a7c744c8c35e31f49fd63246caa44.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ttyponies.sh')
-rwxr-xr-xttyponies.sh11
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
+