diff options
author | Mattias Andrée <maandree@operamail.com> | 2012-08-19 06:08:10 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2012-08-19 06:08:10 +0200 |
commit | 566a381fbd39763decfc889a2e0ddfee1fd5a207 (patch) | |
tree | 04ea16f021496fd6dacf72ed8c9207637ac3814f | |
parent | e0f7998f4bc928a3f089e9731e3fc38dccec3e17 (diff) | |
download | ponysay-566a381fbd39763decfc889a2e0ddfee1fd5a207.tar.gz ponysay-566a381fbd39763decfc889a2e0ddfee1fd5a207.tar.bz2 ponysay-566a381fbd39763decfc889a2e0ddfee1fd5a207.zip |
generating quote files
-rwxr-xr-x | ponyquotes.sh | 17 | ||||
-rw-r--r-- | ponyquotes/ponies | 8 |
2 files changed, 21 insertions, 4 deletions
diff --git a/ponyquotes.sh b/ponyquotes.sh new file mode 100755 index 0000000..9c34226 --- /dev/null +++ b/ponyquotes.sh @@ -0,0 +1,17 @@ +mkdir -p quotes + +for ponies in $(cat ponyquotes/ponies); do + + for pony in $(echo $ponies | sed -e 's/+/ /g'); do + echo 'Generating quote files for '"$pony" + + for file in $(ls "ponyquotes/" | grep "$pony\\.*"); do + + if [[ -f "ponyquotes/$file" ]]; then + + cp "ponyquotes/"$file "quotes/"$ponies'.'$(echo $file | cut -d '.' -f 2) + fi + done + done +done + diff --git a/ponyquotes/ponies b/ponyquotes/ponies index 364b150..0defad8 100644 --- a/ponyquotes/ponies +++ b/ponyquotes/ponies @@ -40,7 +40,7 @@ doctor+doctornohat elsie fancypants fido -cadence+cadance+fillycadence+fillycadance +cadance+fillycadance fillydash+fillydashfly flam fleurdelis+fleurdelishair+fleurdelislay @@ -64,7 +64,7 @@ maredowellfly+maredowellgallop master mayor minuette+colgate -mjölna +mjolna mrssparkle+twilightvelvet nightmare noteworthy+blues @@ -74,7 +74,7 @@ orange owl parasprite philomena -phoenix +philomenaphoenix photofinish pinkamina pinkie+pinkiecannonfront+pinkiecannon+pinkiebounce+pinkiecannonhappy+pinkiegala+pinkiechicken+pinkiehugfluttershy+pinkiegummy+pinkietongue+pinkiesilly @@ -120,7 +120,7 @@ sweetie tank trixie+trixiestage+trixiestand turnip -twilight+twilightcrazyfromball+twilightfury+twilightzero+fillytwilight +twilight+twilightcrazyfromball+twilightrage+twilightzero+fillytwilight twist vinyl+djpon-3+vın̈yl violet+royalribbon |