From 566a381fbd39763decfc889a2e0ddfee1fd5a207 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 19 Aug 2012 06:08:10 +0200 Subject: generating quote files --- ponyquotes.sh | 17 +++++++++++++++++ ponyquotes/ponies | 8 ++++---- 2 files changed, 21 insertions(+), 4 deletions(-) create mode 100755 ponyquotes.sh 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 -- cgit