Skip to content

Commit

Permalink
some edits
Browse files Browse the repository at this point in the history
  • Loading branch information
maandree committed Aug 1, 2012
1 parent e5b783e commit 70c27ca
Show file tree
Hide file tree
Showing 25 changed files with 179 additions and 160 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -6,5 +6,5 @@
/completion/*-completion-think.*
/manuals/manpage.*.gz
/ponysay.info.gz
/ponysaytruncater
/truncater

9 changes: 6 additions & 3 deletions CHANGELOG
@@ -1,15 +1,16 @@
Version 1.3

New Ponies: forestspirit, raggedy, rhyme
New ponies: forestspirit, raggedy, rhyme


Version 1.2

ponyquotes4ponysay is included.

Support for extension: kmsponies4ponysay.

New ponies: ace, filthyrich, blueblood, gingergold, hayfever,
highscore, junebug, mrsparkle, persnickety, ponet,
New ponies: ace, filthyrich, blueblood, gingergold, hayfever,
highscore, junebug, mrsparkle, persnickety, ponet,
screwloose, tornadobolt.

Pony symlinks added: mrsparkle → nightlight
Expand All @@ -19,6 +20,8 @@ Version 1.2
Arbitrary spaces in '-f' argument is not longer accepted (it causes
problems with file names including spaces).

Note: Identifies itself as version 1.1


Version 1.1

Expand Down
65 changes: 33 additions & 32 deletions Makefile
@@ -1,15 +1,15 @@
all: ponysaytruncater manpages infomanual ponythinkcompletion
all: truncater manpages infomanual ponythinkcompletion

ponysaytruncater:
gcc -o "ponysaytruncater" "ponysaytruncater.c"
truncater:
gcc -o "truncater" "truncater.c"

manpages:
gzip -9 < "manuals/manpage.6" > "manuals/manpage.6.gz"
gzip -9 < "manuals/manpage.6" > "manuals/manpage.6.gz"
gzip -9 < "manuals/manpage.es.6" > "manuals/manpage.es.6.gz"

infomanual:
makeinfo "manuals/ponysay.texinfo"
gzip -9 "ponysay.info"
gzip -9 "ponysay.info"

ponythinkcompletion:
sed -e 's/ponysay/ponythink/g' <"completion/bash-completion.sh" | sed -e 's/\/ponythink\//\/ponysay\//g' -e 's/\\\/ponythink\\\//\\\/ponysay\\\//g' >"completion/bash-completion-think.sh"
Expand All @@ -21,47 +21,47 @@ install: all
mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies"
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 quotes/*.* "$(DESTDIR)/usr/share/ponysay/quotes/"
cp -P quotes/*.* "$(DESTDIR)/usr/share/ponysay/quotes/"

mkdir -p "$(DESTDIR)/usr/bin/"
mkdir -p "$(DESTDIR)/usr/bin/"
install "ponysay" "$(DESTDIR)/usr/bin/ponysay"
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/"
install -s "ponysaytruncater" "$(DESTDIR)/usr/lib/ponysay/truncater"
install "ponysaylist.pl" "$(DESTDIR)/usr/lib/ponysay/list.pl"
install "ponysaylinklist.pl" "$(DESTDIR)/usr/lib/ponysay/linklist.pl"

mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/"
install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay"
ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink"

mkdir -p "$(DESTDIR)/usr/lib/ponysay/"
install -s "truncater" "$(DESTDIR)/usr/lib/ponysay/truncater"
install "list.pl" "$(DESTDIR)/usr/lib/ponysay/list.pl"
install "linklist.pl" "$(DESTDIR)/usr/lib/ponysay/linklist.pl"
install "pq4ps" "$(DESTDIR)/usr/lib/pq4ps"
install "pq4ps.pl" "$(DESTDIR)/usr/lib/pq4ps.pl"
install "pq4ps-list" "$(DESTDIR)/usr/lib/pq4ps-list"
install "pq4ps-list.pl" "$(DESTDIR)/usr/lib/pq4ps-list.pl"

mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/"
install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay"
install "completion/bash-completion-think.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponythink"

mkdir -p "$(DESTDIR)/usr/share/fish/completions/"
install "completion/fish-completion.fish" "$(DESTDIR)/usr/share/fish/completions/ponysay.fish"
mkdir -p "$(DESTDIR)/usr/share/fish/completions/"
install "completion/fish-completion.fish" "$(DESTDIR)/usr/share/fish/completions/ponysay.fish"
install "completion/fish-completion-think.fish" "$(DESTDIR)/usr/share/fish/completions/ponythink.fish"

mkdir -p "$(DESTDIR)/usr/share/zsh/site-functions/"
install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"
mkdir -p "$(DESTDIR)/usr/share/zsh/site-functions/"
install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"
install "completion/zsh-completion-think.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponythink"

mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/"
mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/"
install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING"

mkdir -p "$(DESTDIR)/usr/share/man/man6"
mkdir -p "$(DESTDIR)/usr/share/man/man6"
install "manuals/manpage.6.gz" "$(DESTDIR)/usr/share/man/man6/ponysay.6.gz"
ln -sf "ponysay.6.gz" "$(DESTDIR)/usr/share/man/man6/ponythink.6.gz"
ln -sf "ponysay.6.gz" "$(DESTDIR)/usr/share/man/man6/ponythink.6.gz"

mkdir -p "$(DESTDIR)/usr/share/man/es/man6"
mkdir -p "$(DESTDIR)/usr/share/man/es/man6"
install "manuals/manpage.es.6.gz" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6.gz"
ln -sf "ponysay.6.gz" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz"
ln -sf "ponysay.6.gz" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz"

mkdir -p "$(DESTDIR)/usr/share/info"
mkdir -p "$(DESTDIR)/usr/share/info"
install "ponysay.info.gz" "$(DESTDIR)/usr/share/info/ponysay.info.gz"
install "ponysay.info.gz" "$(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/ponysay.info.gz"
Expand Down Expand Up @@ -139,7 +139,7 @@ ttyponies:

pdfmanual:
texi2pdf "manuals/ponysay.texinfo"
git add "manuals/ponysay.texinfo"
git add "manuals/ponysay.texinfo" "ponysay.pdf"
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
Expand All @@ -161,3 +161,4 @@ quotes: submodules
mkdir -p "quotes"
cp "ponyquotes4ponysay/ponyquotes/"*.* "quotes"
git add "quotes/"*.*

1 change: 1 addition & 0 deletions bin/ponysay
2 changes: 1 addition & 1 deletion completion/bash-completion.sh
Expand Up @@ -5,7 +5,7 @@ _ponysay()
local cur prev words cword
_init_completion -n = || return

quotes=$(pq4ps --list 2>/dev/null)
quotes=$(/usr/lib/ponysay/pq4ps --list 2>/dev/null)
quotesexit=$?
options='-v -h -l -f -W'
if [[ $quotesexit = 0 ]]; then
Expand Down
1 change: 1 addition & 0 deletions lib/ponysay/linklist.pl
1 change: 1 addition & 0 deletions lib/ponysay/list.pl
1 change: 1 addition & 0 deletions lib/ponysay/pq4ps
1 change: 1 addition & 0 deletions lib/ponysay/pq4ps-list
1 change: 1 addition & 0 deletions lib/ponysay/pq4ps-list.pl
1 change: 1 addition & 0 deletions lib/ponysay/pq4ps.pl
1 change: 0 additions & 1 deletion ponysaylinklist.pl → linklist.pl
Expand Up @@ -33,4 +33,3 @@
print "\n";
}
}

File renamed without changes.
2 changes: 2 additions & 0 deletions manuals/ponysay.texinfo
Expand Up @@ -849,6 +849,8 @@ Arbitrary spaces in @command{-f} argument is not longer accepted (it causes prob
file names including spaces.)
@end itemize

@b{Note}: Identifies itself as version 1.1

@heading Version 1.1

@itemize @bullet
Expand Down
1 change: 1 addition & 0 deletions ponies/elsie.pony

0 comments on commit 70c27ca

Please sign in to comment.