From 6fcb65b964c0ab40fd4d99317e1f0b30629bfd7e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Jul 2012 19:22:21 +0200 Subject: m + installation of info manual + prebuild PDF --- Makefile | 33 +++++++++++++++++++++++++++++---- README | 2 +- manuals/ponysay.texinfo | 6 +++--- ponysay.pdf | Bin 0 -> 210745 bytes 4 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 ponysay.pdf diff --git a/Makefile b/Makefile index c1ed92e..9b08250 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all: ponysaytruncater manpages ponythinkcompletion +all: ponysaytruncater manpages infomanual ponythinkcompletion ponysaytruncater: @@ -6,8 +6,13 @@ ponysaytruncater: 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: @@ -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" @@ -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'\ @@ -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: @@ -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" diff --git a/README b/README index 5517aa5..c04f3c2 100644 --- a/README +++ b/README @@ -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 diff --git a/manuals/ponysay.texinfo b/manuals/ponysay.texinfo index 9816b2b..5033ca7 100644 --- a/manuals/ponysay.texinfo +++ b/manuals/ponysay.texinfo @@ -294,7 +294,7 @@ you run @command{ponythink}. @menu * Terminals:: Limitations on terminals. -* Cowsay:: Limitations on cowsay, +* Cowsay:: Limitations on cowsay. @end menu @@ -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 @@ -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 diff --git a/ponysay.pdf b/ponysay.pdf new file mode 100644 index 0000000..310fdb5 Binary files /dev/null and b/ponysay.pdf differ -- cgit From f916bbcf642d691c21f06746a912732370760f42 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Jul 2012 19:26:51 +0200 Subject: do not force "all" to run when invoking "make install", it may create files owned by root (in cwd), that should not be owned by root --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9b08250..e259af8 100644 --- a/Makefile +++ b/Makefile @@ -47,7 +47,7 @@ pdfmanual: if [[ -f "ponysay.vr" ]]; then unlink "ponysay.vr" ; fi -install: all +install: mkdir -p "$(DESTDIR)/usr/share/ponysay/" mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies" mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies" -- cgit From d458be657ddce310ecdea86a549b089ec6177ec1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Jul 2012 20:00:20 +0200 Subject: adding blossomforth --- ponies/blossomforth.pony | 26 ++++++++++++++++++++++++++ ttyponies/blossomforth.pony | 27 +++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 ponies/blossomforth.pony create mode 100644 ttyponies/blossomforth.pony diff --git a/ponies/blossomforth.pony b/ponies/blossomforth.pony new file mode 100644 index 0000000..e2696ec --- /dev/null +++ b/ponies/blossomforth.pony @@ -0,0 +1,26 @@ +$the_cow =< Date: Fri, 20 Jul 2012 20:53:55 +0200 Subject: symlink ponies --- ponies/magnum.pony | 1 + ponies/pearl.pony | 1 + ttyponies/magnum.pony | 1 + ttyponies/pearl.pony | 1 + 4 files changed, 4 insertions(+) create mode 120000 ponies/magnum.pony create mode 120000 ponies/pearl.pony create mode 120000 ttyponies/magnum.pony create mode 120000 ttyponies/pearl.pony diff --git a/ponies/magnum.pony b/ponies/magnum.pony new file mode 120000 index 0000000..47da427 --- /dev/null +++ b/ponies/magnum.pony @@ -0,0 +1 @@ +./raritysdad.pony \ No newline at end of file diff --git a/ponies/pearl.pony b/ponies/pearl.pony new file mode 120000 index 0000000..7d26721 --- /dev/null +++ b/ponies/pearl.pony @@ -0,0 +1 @@ +./raritysmom.pony \ No newline at end of file diff --git a/ttyponies/magnum.pony b/ttyponies/magnum.pony new file mode 120000 index 0000000..47da427 --- /dev/null +++ b/ttyponies/magnum.pony @@ -0,0 +1 @@ +./raritysdad.pony \ No newline at end of file diff --git a/ttyponies/pearl.pony b/ttyponies/pearl.pony new file mode 120000 index 0000000..7d26721 --- /dev/null +++ b/ttyponies/pearl.pony @@ -0,0 +1 @@ +./raritysmom.pony \ No newline at end of file -- cgit From 4e31d07f76befd4f0a26a3cff29a1b56bf1019ae Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Jul 2012 21:23:17 +0200 Subject: issue 45 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index e259af8..7f0ee07 100644 --- a/Makefile +++ b/Makefile @@ -88,6 +88,8 @@ install: 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" + install-info --dir-file="/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "/usr/share/info/ponysay.info.gz" + install-info --dir-file="/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "/usr/share/info/ponythink.info.gz" @echo -e '\n\n'\ '/--------------------------------------------------\\\n'\ -- cgit From 6f7decf58faeae2a385980bddba0760ae7410f23 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 20 Jul 2012 21:24:19 +0200 Subject: m --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7f0ee07..1cc935b 100644 --- a/Makefile +++ b/Makefile @@ -88,8 +88,8 @@ install: 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" - install-info --dir-file="/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "/usr/share/info/ponysay.info.gz" - install-info --dir-file="/usr/share/info/dir" --entry="Miscellaneous" --description="My Little Ponies for your terminal" "/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" + 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" @echo -e '\n\n'\ '/--------------------------------------------------\\\n'\ -- cgit