Skip to content

Commit

Permalink
m + installation of info manual + prebuild PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
maandree committed Jul 20, 2012
1 parent 39968bb commit 6fcb65b
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
33 changes: 29 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
all: ponysaytruncater manpages ponythinkcompletion
all: ponysaytruncater manpages infomanual ponythinkcompletion


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


manpages:
gzip -9 < manuals/manpage.6 > manuals/manpage.6.gz
gzip -9 < manuals/manpage.es.6 > manuals/manpage.es.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"


ponythinkcompletion:
Expand All @@ -28,6 +33,20 @@ ttyponies:
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
mkdir -p "$(DESTDIR)/usr/share/ponysay/"
mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies"
Expand Down Expand Up @@ -66,6 +85,10 @@ install: all
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"

mkdir -p "$(DESTDIR)/usr/share/info"
install "ponysay.info.gz" "$(DESTDIR)/usr/share/info/ponysay.info.gz"
ln -sf "ponysay.info.gz" "$(DESTDIR)/usr/share/info/ponythink.info.gz"

@echo -e '\n\n'\
'/--------------------------------------------------\\\n'\
'| ___ |\n'\
Expand Down Expand Up @@ -103,6 +126,8 @@ uninstall:
unlink "$(DESTDIR)/usr/share/man/man6/ponythink.6.gz"
unlink "$(DESTDIR)/usr/share/man/es/man6/ponysay.6.gz"
unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6.gz"
unlink "$(DESTDIR)/usr/share/info/ponysay.info.gz"
unlink "$(DESTDIR)/usr/share/info/ponythink.info.gz"


clean:
Expand All @@ -112,4 +137,4 @@ clean:
rm "completion/zsh-completion-think.zsh"
rm "manuals/manpage.6.gz"
rm "manuals/manpage.es.6.gz"

rm "ponysay.info.gz"
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Package building dependencies
Dependencies for pony providers
===============================

make : required to run `make -B ttyponies`
make : required to run `make -B ttyponies`

coreutils : ln and readlink are used in the ttyponies subscript

Expand Down
6 changes: 3 additions & 3 deletions manuals/ponysay.texinfo
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ you run @command{ponythink}.

@menu
* Terminals:: Limitations on terminals.
* Cowsay:: Limitations on cowsay,
* Cowsay:: Limitations on cowsay.
@end menu


Expand Down Expand Up @@ -535,7 +535,7 @@ but util-say tries do optimise the images in some aspects: as good as possible f
low capability terminals, tries to place the pony–balloon link, displayed as good as
possible when marked in the terminal (somewhat compromised by the first aspect,) and
same width on all rows.

Using util-say:
@example
img2ponysay -2 -- SOURCE_IMAGE > PONY_FILE
Expand Down Expand Up @@ -596,7 +596,7 @@ You have the four essential freedoms:
@item
The freedom to run the program, for any purpose (freedom 0).
@item
The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.
The freedom to study how the program works, and change it so it does your computing as you wish (freedom 1). Access to the source code is a precondition for this.
@item
The freedom to redistribute copies so you can help your neighbour (freedom 2).
@item
Expand Down
Binary file added ponysay.pdf
Binary file not shown.

1 comment on commit 6fcb65b

@erkin
Copy link
Owner

@erkin erkin commented on 6fcb65b Jul 21, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simply brilliant!

Please sign in to comment.