partial merge of quotes into main

This commit is contained in:
Mattias Andrée 2012-08-01 00:19:34 +02:00
parent ccd12be1eb
commit e5b783e528
293 changed files with 489 additions and 34 deletions

View file

@ -1,4 +1,4 @@
all: ponysaytruncater manpages infomanual ponythinkcompletion submodules all: ponysaytruncater manpages infomanual ponythinkcompletion
ponysaytruncater: ponysaytruncater:
gcc -o "ponysaytruncater" "ponysaytruncater.c" gcc -o "ponysaytruncater" "ponysaytruncater.c"
@ -16,45 +16,22 @@ ponythinkcompletion:
sed -e 's/ponysay/ponythink/g' <"completion/fish-completion.fish" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/fish-completion-think.fish" sed -e 's/ponysay/ponythink/g' <"completion/fish-completion.fish" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/fish-completion-think.fish"
sed -e 's/ponysay/ponythink/g' <"completion/zsh-completion.zsh" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/zsh-completion-think.zsh" sed -e 's/ponysay/ponythink/g' <"completion/zsh-completion.zsh" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/zsh-completion-think.zsh"
submodules:
git submodule init
git submodule update
(cd "ponyquotes4ponysay/"; make -B)
ttyponies:
mkdir -p ttyponies
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
pdfmanual:
texi2pdf "manuals/ponysay.texinfo"
if [[ -f "ponysay.aux" ]]; then unlink "ponysay.aux"; fi
if [[ -f "ponysay.cp" ]]; then unlink "ponysay.cp" ; fi
if [[ -f "ponysay.cps" ]]; then unlink "ponysay.cps"; fi
if [[ -f "ponysay.fn" ]]; then unlink "ponysay.fn" ; fi
if [[ -f "ponysay.ky" ]]; then unlink "ponysay.ky" ; fi
if [[ -f "ponysay.log" ]]; then unlink "ponysay.log"; fi
if [[ -f "ponysay.pg" ]]; then unlink "ponysay.pg" ; fi
if [[ -f "ponysay.toc" ]]; then unlink "ponysay.toc"; fi
if [[ -f "ponysay.tp" ]]; then unlink "ponysay.tp" ; fi
if [[ -f "ponysay.vr" ]]; then unlink "ponysay.vr" ; fi
install: all install: all
mkdir -p "$(DESTDIR)/usr/share/ponysay/" mkdir -p "$(DESTDIR)/usr/share/ponysay/"
mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies" mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies"
mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies" mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies"
mkdir -p "$(DESTDIR)/usr/share/ponysay/quotes"
cp -P ponies/*.pony "$(DESTDIR)/usr/share/ponysay/ponies/" cp -P ponies/*.pony "$(DESTDIR)/usr/share/ponysay/ponies/"
cp -P ttyponies/*.pony "$(DESTDIR)/usr/share/ponysay/ttyponies/" cp -P ttyponies/*.pony "$(DESTDIR)/usr/share/ponysay/ttyponies/"
cp -P quotes/*.* "$(DESTDIR)/usr/share/ponysay/quotes/"
mkdir -p "$(DESTDIR)/usr/bin/" mkdir -p "$(DESTDIR)/usr/bin/"
install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install "ponysay" "$(DESTDIR)/usr/bin/ponysay"
ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink"
install "pq4ps" "$(DESTDIR)/usr/bin/pq4ps"
install "pq4ps.pl" "$(DESTDIR)/usr/bin/pq4ps.pl"
install "pq4ps-list" "$(DESTDIR)/usr/bin/pq4ps-list"
install "pq4ps-list.pl" "$(DESTDIR)/usr/bin/pq4ps-list.pl"
mkdir -p "$(DESTDIR)/usr/lib/ponysay/" mkdir -p "$(DESTDIR)/usr/lib/ponysay/"
install -s "ponysaytruncater" "$(DESTDIR)/usr/lib/ponysay/truncater" install -s "ponysaytruncater" "$(DESTDIR)/usr/lib/ponysay/truncater"
@ -90,8 +67,6 @@ install: all
install-info --dir-file="$(DESTDIR)/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "$(DESTDIR)/usr/share/info/ponysay.info.gz" install-info --dir-file="$(DESTDIR)/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "$(DESTDIR)/usr/share/info/ponysay.info.gz"
install-info --dir-file="$(DESTDIR)/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "$(DESTDIR)/usr/share/info/ponythink.info.gz" install-info --dir-file="$(DESTDIR)/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "$(DESTDIR)/usr/share/info/ponythink.info.gz"
(cd "ponyquotes4ponysay/"; make DESTDIR="$(DESTDIR)" install)
@echo -e '\n\n'\ @echo -e '\n\n'\
'/--------------------------------------------------\\\n'\ '/--------------------------------------------------\\\n'\
'| ___ |\n'\ '| ___ |\n'\
@ -111,10 +86,13 @@ install: all
@echo '' | ./ponysay -f ./`if [[ "$$TERM" = "linux" ]]; then echo ttyponies; else echo ponies; fi`/pinkiecannon.pony | tail --lines=30 ; echo -e '\n' @echo '' | ./ponysay -f ./`if [[ "$$TERM" = "linux" ]]; then echo ttyponies; else echo ponies; fi`/pinkiecannon.pony | tail --lines=30 ; echo -e '\n'
uninstall: uninstall:
rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" rm -fr "$(DESTDIR)/usr/share/ponysay"
rm -fr "$(DESTDIR)/usr/share/ponysay/ttyponies"
unlink "$(DESTDIR)/usr/bin/ponysay" unlink "$(DESTDIR)/usr/bin/ponysay"
unlink "$(DESTDIR)/usr/bin/ponythink" unlink "$(DESTDIR)/usr/bin/ponythink"
unlink "$(DESTDIR)/usr/bin/pq4ps"
unlink "$(DESTDIR)/usr/bin/pq4ps.pl"
unlink "$(DESTDIR)/usr/bin/pq4ps-list"
unlink "$(DESTDIR)/usr/bin/pq4ps-list.pl"
unlink "$(DESTDIR)/usr/lib/ponysay/list.pl" unlink "$(DESTDIR)/usr/lib/ponysay/list.pl"
unlink "$(DESTDIR)/usr/lib/ponysay/linklist.pl" unlink "$(DESTDIR)/usr/lib/ponysay/linklist.pl"
unlink "$(DESTDIR)/usr/lib/ponysay/truncater" unlink "$(DESTDIR)/usr/lib/ponysay/truncater"
@ -142,3 +120,44 @@ clean:
rm -f "manuals/manpage.es.6.gz" rm -f "manuals/manpage.es.6.gz"
rm -f "ponysay.info.gz" rm -f "ponysay.info.gz"
(cd "ponyquotes4ponysay/"; make clean) (cd "ponyquotes4ponysay/"; make clean)
## Scripts for maintainers
ttyponies:
mkdir -p ttyponies
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" ;\
git add "ttyponies/$$pony" ;\
elif [[ ! -f "ttyponies/$$pony" ]]; then \
ln -s `readlink "ponies/$$pony"` "ttyponies/$$pony" ;\
git add "ttyponies/$$pony" ;\
fi \
done
pdfmanual:
texi2pdf "manuals/ponysay.texinfo"
git add "manuals/ponysay.texinfo"
if [[ -f "ponysay.aux" ]]; then unlink "ponysay.aux"; fi
if [[ -f "ponysay.cp" ]]; then unlink "ponysay.cp" ; fi
if [[ -f "ponysay.cps" ]]; then unlink "ponysay.cps"; fi
if [[ -f "ponysay.fn" ]]; then unlink "ponysay.fn" ; fi
if [[ -f "ponysay.ky" ]]; then unlink "ponysay.ky" ; fi
if [[ -f "ponysay.log" ]]; then unlink "ponysay.log"; fi
if [[ -f "ponysay.pg" ]]; then unlink "ponysay.pg" ; fi
if [[ -f "ponysay.toc" ]]; then unlink "ponysay.toc"; fi
if [[ -f "ponysay.tp" ]]; then unlink "ponysay.tp" ; fi
if [[ -f "ponysay.vr" ]]; then unlink "ponysay.vr" ; fi
submodules: clean
git submodule init
git submodule update
quotes: submodules
(cd "ponyquotes4ponysay/"; make -B)
if [[ -d quotes ]]; then git rm "quotes/"*.*; fi
mkdir -p "quotes"
cp "ponyquotes4ponysay/ponyquotes/"*.* "quotes"
git add "quotes/"*.*

39
pq4ps Executable file
View file

@ -0,0 +1,39 @@
#!/bin/bash
if [[ $# == 1 ]] && [[ "$1" == '-l' || "$1" == '--list' ]]; then
perl $0.pl | cut -d @ -f 1 | uniq
else
_ponies="$(perl $0.pl)"
ponies=()
if [[ ! $# == 0 ]]; then
p=""
for arg in "$@"; do
p=$p$(echo "$_ponies" | grep "^$arg@")" "
done
_ponies=$p
fi
for _pony in $_ponies; do
ponies+=( $_pony )
done
if [[ ${#ponies[@]} == 0 ]]; then
ponies=()
for arg in "$@"; do
ponies+=( "$arg" )
done
p="${ponies[$RANDOM%${#ponies[@]}]}"
q='I am totally speechless'
echo "-f" $p $q
else
pony="${ponies[$RANDOM%${#ponies[@]}]}"
p="$(echo $pony | cut -d '@' -f 1)"
f="$(echo $pony | cut -d '@' -f 2)"
q="$(cat "/usr/share/ponysay/quotes/$f")"
echo "-f" $p $q
fi
fi

6
pq4ps-list Executable file
View file

@ -0,0 +1,6 @@
#!/bin/bash
cmd=$(echo $0 | sed -e 's/\-list$//g')
pl=$0.pl
bash -c "$($pl $($cmd --list))"

24
pq4ps-list.pl Executable file
View file

@ -0,0 +1,24 @@
#!/usr/bin/perl
print "(sed";
foreach $arg (@ARGV)
{
print " -e 's/ $arg / \e[1m$arg\e[21m /g'";
print " -e 's/ $arg)/ \e[1m$arg\e[21m)/g'";
print " -e 's/($arg /(\e[1m$arg\e[21m /g'";
print " -e 's/($arg)/(\e[1m$arg\e[21m)/g'";
print " -e 's/ $arg\$/ \e[1m$arg\e[21m/g'";
print " -e 's/^$arg /\e[1m$arg\e[21m /g'";
print " -e 's/^$arg\$/\e[1m$arg\e[21m/g'";
}
print " | sed";
foreach $arg (@ARGV)
{
print " -e 's/ $arg)/ \e[1m$arg\e[21m)/g'";
print " -e 's/ $arg\$/ \e[1m$arg\e[21m/g'"
}
print ")";

26
pq4ps.pl Executable file
View file

@ -0,0 +1,26 @@
#!/usr/bin/perl
opendir(DIR, "/usr/share/ponysay/ponies/");
@files = readdir(DIR);
opendir(DIR, "/usr/share/ponysay/quotes/");
@quotes = readdir(DIR);
foreach $file (@files)
{
$_ = $file;
$_ =~ s/\.pony$//g;
$f = $_;
if (! /^\./)
{ foreach $quote (@quotes)
{
$_ = $quote;
$_ =~ s/\.\d+//g;
$_ = '+'.$_.'+';
if (! /^\./)
{ if (/\+$f\+/)
{ print $f."@".$quote."\n";
} }
} }
}

1
quotes/applebloom.0 Normal file
View file

@ -0,0 +1 @@
Aren't you gonna stay for brunch?

1
quotes/applebloom.1 Normal file
View file

@ -0,0 +1 @@
But I want it now!

1
quotes/applebloom.2 Normal file
View file

@ -0,0 +1 @@
I am a big pony!

1
quotes/applebloom.3 Normal file
View file

@ -0,0 +1 @@
I'm not a baby, I can take care of myself!

1
quotes/applebloom.4 Normal file
View file

@ -0,0 +1 @@
Likely story.

1
quotes/applebloom.5 Normal file
View file

@ -0,0 +1 @@
Not the cupcakes! Trust me.

1
quotes/applebloom.6 Normal file
View file

@ -0,0 +1 @@
Somepony needs to put this thing out of its misery.

1
quotes/applebloom.7 Normal file
View file

@ -0,0 +1 @@
You're not using power tools, are you?

1
quotes/applebloom.8 Normal file
View file

@ -0,0 +1 @@
Scootaloo! Scoot-Scootaloo!

View file

@ -0,0 +1 @@
Don't you use your fancy mathematics to muddy the issue!

View file

@ -0,0 +1 @@
Dressed? Um, beg your pardon, Rarity, but we don't normally wear clothes.

View file

@ -0,0 +1 @@
The same way [Discord] got you to think that cheap rock was a bona fide diamond.

View file

@ -0,0 +1 @@
If you can take this bull by the horns you better be ready for a ride!

View file

@ -0,0 +1 @@
Can't hear you! I'm asleep! *SNORE*

View file

@ -0,0 +1 @@
Don't you use your fancy mathematics to muddle the issue!

View file

@ -0,0 +1 @@
I hate to say I told you so. But I told you so.

View file

@ -0,0 +1 @@
We don't normally wear clothes

View file

@ -0,0 +1 @@
I knew you could do it.

View file

@ -0,0 +1 @@
Who are you calling a baby?

1
quotes/bigmac.0 Normal file
View file

@ -0,0 +1 @@
Ayup.

1
quotes/bigmac.1 Normal file
View file

@ -0,0 +1 @@
Nope.

1
quotes/bigmac.2 Normal file
View file

@ -0,0 +1 @@
Biting off more than you can chew is just what I'm afraid of.

1
quotes/bigmac.3 Normal file
View file

@ -0,0 +1 @@
One pony plus hundreds of appletrees just doesn't add up.

1
quotes/bigmac.4 Normal file
View file

@ -0,0 +1 @@
Too big for you to handle on your own.

View file

@ -0,0 +1 @@
Is Fluttershy still here? We heard Fluttershy was here!

View file

@ -0,0 +1 @@
I didn't put those in my bag.

1
quotes/braeburn.0 Normal file
View file

@ -0,0 +1 @@
Shame on you!

1
quotes/braeburn.1 Normal file
View file

@ -0,0 +1 @@
'Taint fair!

1
quotes/braeburn.2 Normal file
View file

@ -0,0 +1 @@
Welcome to Appleoosa!

View file

@ -0,0 +1 @@
Welcome, Princess Celest!

View file

@ -0,0 +1 @@
We couldn't fit it all in.

View file

@ -0,0 +1,5 @@
Discord is the mischievous spirit of Disharmony. Before my sister and I stood
up to him, he ruled Equestria in an eternal state of unrest, and unhappiness.
Luna and I saw how miserable life was for Earth ponies, pegasi, and unicorns
alike. So after discovering the Elements of Harmony, we combined our power and
rose up against him, turning him to stone!

View file

@ -0,0 +1 @@
Gotcha!

View file

@ -0,0 +1 @@
These creatures are adorable!

View file

@ -0,0 +1 @@
I want you right by my side the entire evening.

View file

@ -0,0 +1 @@
Will you accept my friendship?

View file

@ -0,0 +1 @@
Honestly, that's how everypony was wearing their mane back then.

View file

@ -0,0 +1 @@
Everypony should get fun gifts on their birthday.

View file

@ -0,0 +1 @@
Muffin...

View file

@ -0,0 +1 @@
I don't know what went wrong!

View file

@ -0,0 +1 @@
You okay Rainbow Dash? Anything I can do to help?

View file

@ -0,0 +1 @@
I just don't know what went wrong!

View file

@ -0,0 +1 @@
Are you okey Applejack, anything I can do to help?

1
quotes/diamondtiara.0 Normal file
View file

@ -0,0 +1 @@
Blank Flank!

View file

@ -0,0 +1 @@
What fun is there in making sense?

View file

@ -0,0 +1 @@
Would you please leave me alone!

1
quotes/fancypants.0 Normal file
View file

@ -0,0 +1 @@
Rarity, jolly good to see you! Glad you could make it.

View file

@ -0,0 +1,2 @@
Um, Pinkie Pie ... about this party for Gilda;
do you really think it's a good idea? I mean...

View file

@ -0,0 +1 @@
I'm a year older than you.

View file

@ -0,0 +1 @@
Uh, panic?

View file

@ -0,0 +1,8 @@
The armscye's tight, the middy collar doesn't go with the shawl lapel,
the hems are clearly machine-stitched, the pleats are uneven, the
fabric looks like toile, you used a backstitch here when it clearly
called for a topstitch, or maybe a traditional blanket stitch, and the
overall design is reminiscent of prêt-à-porter and not true French
haute couture...
But ... uh ... you know ... um ... whatever you want to do is fine...

View file

@ -0,0 +1,4 @@
Well ... It's a game about who can be quiet the longest. Sound fun?
I'm the world champ, you know. I betcha can't beat me!
~Squee~

View file

@ -0,0 +1,2 @@
I'll catch you yet, my pretties. Oh yes. As soon as one of you little
birds or monkeys or bears touches this net ... you'll be MINE! MINE!

View file

@ -0,0 +1 @@
A sonic rainboom! She did it! She did it! WOOO!

View file

@ -0,0 +1,3 @@
Now wait just a minute! Oh, I'm sorry.
I'm trying to be more assertive. Anyhow...
She *is* going to do a sonic rainboom!

View file

@ -0,0 +1 @@
Then show up at the Cloudseum and see for yourself! ... If you're free.

View file

@ -0,0 +1,3 @@
Hey Twilight, what's soaking wet and clueless?
[⋅⋅⋅]
YOUR FACE!

View file

@ -0,0 +1 @@
Good boy, Angel! Mama's so proud!

View file

@ -0,0 +1,2 @@
Um ... I'm just wondering if it's okay if I hold
you down against your will for a little bit?

View file

@ -0,0 +1,3 @@
I can't believe this ... I am so frustrated, I could just scream!
(Eee!)

View file

@ -0,0 +1,3 @@
Yes. Because he wasn't a huge, gigantic, terrible, enormous,
teeth-gnashing, sharp scale-having, horn-wearing, smoke-snoring,
could-eat-a-pony-in-one-bite, totally-all-grown-up dragon.

View file

@ -0,0 +1 @@
What is this place, filled with so many wonders?

View file

@ -0,0 +1 @@
Oooh, what a magical place!

View file

@ -0,0 +1 @@
*crazy laugh*

View file

@ -0,0 +1 @@
How dare you!

View file

@ -0,0 +1 @@
I'd like to be a tree.

View file

@ -0,0 +1 @@
I don't wanna talk about it.

View file

@ -0,0 +1 @@
I am so sorry to have scared you, my friends.

View file

@ -0,0 +1 @@
I am the world champ, you know. A bet you can't beat me.

View file

@ -0,0 +1 @@
You're the cutest thing ever!

View file

@ -0,0 +1 @@
You rock, woohoo!

View file

@ -0,0 +1 @@
Yaaay ... too loud?

View file

@ -0,0 +1 @@
(squeak)

View file

@ -0,0 +1 @@
You're ... GOING TO LOVE ME!!!

View file

@ -0,0 +1 @@
I can't!

View file

@ -0,0 +1 @@
That big ... dumb ... MEANIE!!!!

View file

@ -0,0 +1,4 @@
Now, Rainbow my dear, I cannot express my delight
It's abundantly clear
That somewhere out here
Is a pet that will suit you just right.

View file

@ -0,0 +1 @@
That's me! Half eagle, half lion, and all awesome!

View file

@ -0,0 +1 @@
Don't you know how to take GET LOST for an answer?

View file

@ -0,0 +1 @@
I know what you're up to!

View file

@ -0,0 +1 @@
When you decide not be lame anymore, give me a call!

View file

@ -0,0 +1 @@
You're such a flip-flop! Cool one minute and lame the next.

View file

@ -0,0 +1,5 @@
*sigh* Only for you, Dash.
Junior Speedsters are our lives
Sky-bound soars and daring dives
Junior Speedsters; it's our quest
To someday be the very best

View file

@ -0,0 +1 @@
I should have been asleep five hours ago!

1
quotes/lily.0 Normal file
View file

@ -0,0 +1 @@
The horror, the horror!

1
quotes/lily.1 Normal file
View file

@ -0,0 +1 @@
This is awful! Horribly, terribly awful!

1
quotes/luna+lunafly.0 Normal file
View file

@ -0,0 +1 @@
Ha, ha! The fun has been doubled!

1
quotes/luna+lunafly.1 Normal file
View file

@ -0,0 +1 @@
I missed you so much!

1
quotes/luna+lunafly.2 Normal file
View file

@ -0,0 +1 @@
I'm so sorry!

1
quotes/luna+lunafly.3 Normal file
View file

@ -0,0 +1 @@
TOGETHER, WE SHALL TURN THIS DREADFUL NIGHT INTO A GLORIOUS FEEEEAAAAST!

1
quotes/luna+lunafly.4 Normal file
View file

@ -0,0 +1 @@
OH MOST WON... I mean, oh most wonderful of nights!

1
quotes/luna+lunafly.5 Normal file
View file

@ -0,0 +1 @@
WE COULD NOT BE HAPPIER! IS THAT NOT CLEAR?

1
quotes/luna+lunafly.6 Normal file
View file

@ -0,0 +1 @@
THIS IS THE TRADITIONAL ROYAL CANTERLOT VOICE!

Some files were not shown because too many files have changed in this diff Show more