From b900d6e82a304ffe78eb7e5db9b76e63209b194c Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Fri, 11 May 2012 19:40:48 +0300 Subject: Safety/portability etc measures. Probably missed something somewhere. --- Makefile | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/Makefile b/Makefile index 6a6e8dc..10794fa 100644 --- a/Makefile +++ b/Makefile @@ -1,18 +1,16 @@ install: - gcc -o ponysaytruncater ponysaytruncater.c - mkdir -p $(DESTDIR)/usr/share/ponies - mkdir -p $(DESTDIR)/usr/share/ttyponies - cp -r ponies/*.pony $(DESTDIR)/usr/share/ponies/ - cp -r ttyponies/*.pony $(DESTDIR)/usr/share/ttyponies/ - install -Dm755 ponysay $(DESTDIR)/usr/bin/ponysay - install -Dm755 ponysaytruncater $(DESTDIR)/usr/bin/ponysaytruncater - ln -sf ponysay $(DESTDIR)/usr/bin/ponythink + gcc -o "ponysaytruncater" "ponysaytruncater.c" + mkdir -p "$(DESTDIR)/usr/share/ponies" + mkdir -p "$(DESTDIR)/usr/share/ttyponies" + cp -r "ponies/*.pony" "$(DESTDIR)/usr/share/ponies/" + cp -r "ttyponies/*.pony" "$(DESTDIR)/usr/share/ttyponies/" + install "ponysay" "$(DESTDIR)/usr/bin/ponysay" + install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" + ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" uninstall: - rm -fr $(DESTDIR)/usr/share/ponies -# cp -r ponies/*.pony $(DESTDIR)/usr/share/ponies/ - rm -fr $(DESTDIR)/usr/share/ttyponies -# cp -r ttyponies/*.pony $(DESTDIR)/usr/share/ttyponies/ - rm -f $(DESTDIR)/usr/bin/ponysay - rm -f $(DESTDIR)/usr/bin/ponysaytruncater - unlink $(DESTDIR)/usr/bin/ponythink + rm -fr "$(DESTDIR)/usr/share/ponies" + rm -fr "$(DESTDIR)/usr/share/ttyponies" + unlink "$(DESTDIR)/usr/bin/ponysay" + unlink "$(DESTDIR)/usr/bin/ponysaytruncater" + unlink "$(DESTDIR)/usr/bin/ponythink" -- cgit From 6becf3e9970b7784ea002f421f5c1e6b22af1d59 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 11 May 2012 22:05:50 +0200 Subject: already in FAQ (were it is more stylish to have it) --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index c7f85b2..e69a63f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,5 @@ `ponysay` - A cowsay wrapper with ponies. -The pony files are [desktop/browser ponies](http://web.student.tuwien.ac.at/~e0427417/browser-ponies/ponies.html) converted using [img2xterm](https://github.com/rossy2401/img2xterm). - ![Derp](http://i.imgur.com/xOJbE.png) Today your terminal, tomorrow the world! -- cgit From 348e925fc573eaba6dce2ccad96b319d210a8fc2 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 11 May 2012 22:07:14 +0200 Subject: as most are --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e69a63f..95c160d 100644 --- a/README.md +++ b/README.md @@ -65,4 +65,4 @@ __A:__ Ask and we'll add! __Q:__ Which programs do you use to generate the pony files? -__A:__ The pony files are actually a bunch of selected [browser ponies](http://web.student.tuwien.ac.at/~e0427417/browser-ponies/ponies.html) that are generated into cow files via [img2xterm](https://github.com/rossy2401/img2xterm). +__A:__ The pony files are actually a bunch of selected [browser ponies](http://web.student.tuwien.ac.at/~e0427417/browser-ponies/ponies.html) that are generated into cow files via [img2xterm](https://github.com/rossy2401/img2xterm) or [util-say](https://github.com/maandree/util-say). -- cgit From a3677eae4affbe53430084f95b8d111a1cbd6245 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 May 2012 02:19:59 +0200 Subject: From ponysay-git in AUR by "gtmanfred" with adaption to [erkin]'s last push, and uninstall rutine --- Makefile | 4 ++++ completion/zsh-completion.zsh | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 completion/zsh-completion.zsh diff --git a/Makefile b/Makefile index 10794fa..045db2a 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,8 @@ install: install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" + install "zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" + install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" uninstall: rm -fr "$(DESTDIR)/usr/share/ponies" @@ -14,3 +16,5 @@ uninstall: unlink "$(DESTDIR)/usr/bin/ponysay" unlink "$(DESTDIR)/usr/bin/ponysaytruncater" unlink "$(DESTDIR)/usr/bin/ponythink" + unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" + unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" diff --git a/completion/zsh-completion.zsh b/completion/zsh-completion.zsh new file mode 100644 index 0000000..26116d2 --- /dev/null +++ b/completion/zsh-completion.zsh @@ -0,0 +1,11 @@ +#compdef ponysay +_shortopts=( + '-v[Show version and exit]' + '-h[Show this help and exit]' + '-l[list ponyfiles]' + '-f[Select a pony (either a filename or a ponyname]: :_path_files -W "/usr/share/ponies" -g "*(\:r)"' + '-W[The screen column where the message should be wrapped]' + ) +_arguments -s : \ + "$_shortopts[@]" + -- cgit From 6b2661f1235534e800a9d3070a73e7c0e6262bfc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 May 2012 02:57:40 +0200 Subject: completion for bash --- completion/bash-completion.sh | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 completion/bash-completion.sh diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh new file mode 100644 index 0000000..31daef2 --- /dev/null +++ b/completion/bash-completion.sh @@ -0,0 +1,33 @@ +# bash completion for ponysay -*- shell-script -*- + +_ponysay() +{ + local cur prev words cword + _init_completion -n = || return + + COMPREPLY=( $( compgen -W '-v -h -l -f -W' -- "$cur" ) ) + + if [[ $prev = "-f" ]]; then + COMPREPLY=() + + sysponies=/usr/share/ponies/ + usrponies=~/.ponies/ + if [[ $TERM = "linux" ]]; then + sysponies=/usr/share/ttyponies/ + usrponies=~/.ttyponies/ + fi + + if [[ -d $sysponies ]]; then + COMPREPLY+=( $( compgen -W "$(ls $sysponies | sed -e 's/.pony//g')" -- "$cur" ) ) + fi + if [[ -d $usrponies ]]; then + COMPREPLY+=( $( compgen -W "$(ls $usrponies | sed -e 's/.pony//g')" -- "$cur" ) ) + fi + elif [[ $prev = "-W" ]]; then + cols=$( echo `tput cols` - 10 | bc ) + COMPREPLY=( $cols $( echo $cols / 2 | bc ) 100 60 ) + fi +} + +complete -o default -F _ponysay ponysay + -- cgit From e76318dd681f6279e12f70ef7fb008806ef79e33 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 May 2012 03:00:21 +0200 Subject: ... and (un)install + correction on last push --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 045db2a..53880ef 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,9 @@ install: install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" - install "zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" + install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" + install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" uninstall: rm -fr "$(DESTDIR)/usr/share/ponies" @@ -18,3 +19,4 @@ uninstall: unlink "$(DESTDIR)/usr/bin/ponythink" unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" + unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" -- cgit From 2c849198f6847a814874563b604c4b2dd93e20e6 Mon Sep 17 00:00:00 2001 From: Jannis Friedmann Date: Sat, 12 May 2012 14:30:40 +0200 Subject: Fixed Makefile * doesn't try to install and uninstall zsh-addon if zsh is not installed * creates folders when they are missing (fixes installation bug on ubuntu 12.04) --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 53880ef..b087bb1 100644 --- a/Makefile +++ b/Makefile @@ -2,13 +2,15 @@ install: gcc -o "ponysaytruncater" "ponysaytruncater.c" mkdir -p "$(DESTDIR)/usr/share/ponies" mkdir -p "$(DESTDIR)/usr/share/ttyponies" - cp -r "ponies/*.pony" "$(DESTDIR)/usr/share/ponies/" - cp -r "ttyponies/*.pony" "$(DESTDIR)/usr/share/ttyponies/" + cp -r ponies/*.pony "$(DESTDIR)/usr/share/ponies/" + cp -r ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" - install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" + if [ -d "$(DESTDIR)/usr/share/zsh/site-functions/" ]; then install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi + mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" + mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" uninstall: @@ -17,6 +19,6 @@ uninstall: unlink "$(DESTDIR)/usr/bin/ponysay" unlink "$(DESTDIR)/usr/bin/ponysaytruncater" unlink "$(DESTDIR)/usr/bin/ponythink" - unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" + if [ -e "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" ]; then unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" -- cgit From cc0ddd7c74c8c0d32b84d9c21661873e8b450f25 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Sat, 12 May 2012 19:57:55 +0200 Subject: Bunch of edits * Make truncater rather readable and indented (hope you won't mind!) * List people in CREDITS (ask to get your name removed or changed) * Make README better --- COPYING | 2 +- CREDITS | 16 +++++ README.md | 21 +++--- ponysaytruncater.c | 198 ++++++++++++++++++++++++----------------------------- 4 files changed, 116 insertions(+), 121 deletions(-) create mode 100644 CREDITS diff --git a/COPYING b/COPYING index 9dbbef9..c749fa1 100644 --- a/COPYING +++ b/COPYING @@ -1,7 +1,7 @@ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 - Copyright (C) 2012 Sven-Hendrik Haase, Jan Alexander Steffens and Erkin Batu Altunbaş + Copyright (C) 2012 Erkin Batu Altunbaş Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long diff --git a/CREDITS b/CREDITS new file mode 100644 index 0000000..9367855 --- /dev/null +++ b/CREDITS @@ -0,0 +1,16 @@ +# Pretty much all the contributors in alphabetic order. + +# Active developers +Erkin Batu Altunbaş +Jan Alexander Steffens +Mattias Andrée +Sven-Hendrik Haase + +# Patchers and other contributors +Duane Bekaert +Elis +James Ross-Gowan +Jannis +Kyah Rindlisbacher +Louis Taylor +Pablo Lezaeta diff --git a/README.md b/README.md index 95c160d..0bc5f6f 100644 --- a/README.md +++ b/README.md @@ -1,22 +1,23 @@ -`ponysay` - A cowsay wrapper with ponies. +`ponysay` - A cowsay wrapper for ponies. ![Derp](http://i.imgur.com/xOJbE.png) + Today your terminal, tomorrow the world! Installation on Linux (or other Unix) ------------------------------------- -If you do not already have `cowsay` you will need to install it +First of all, you need `cowsay` from your local repositories. +Obtain it from [here](http://www.nog.net/~tony/warez/cowsay.shtml) if you wish to compile it yourself. - apt-get install cowsay # assuming dpkg +[Download](https://github.com/erkin/ponysay/downloads) or clone the project. +In the terminal, `cd` into the ponysay directory and `make install`. -[Download](https://github.com/erkin/ponysay/downloads) the latest project. In the terminal, `cd` into the ponysay directory and run - - sudo make +This will install ponysay into the $PREFIX (`/usr` by default, meaning you may need to make as root). -This will install ponysay into the $PREFIX (`/usr` by default). In order to use ponysay, run +In order to use ponysay, run: - ponysay "I am just the cutest pony" + ponysay "I am just the cutest pony!" Or if you have a specific pony in your mind: @@ -24,9 +25,7 @@ Or if you have a specific pony in your mind: ### Pony fortune on terminal startup -This requires that you have the `fortune` utility installed - - apt-get install fortune +This requires that you have the `fortune` utility installed. You can install it from your repositories or just fetch the source code from [here](ftp://ftp.ibiblio.org/pub/linux/games/amusements/fortune/). You can try [this](http://www.reddit.com/r/mylittlelinux/comments/srixi/using_ponysay_with_a_ponified_fortune_warning/) script to ponify fortunes. diff --git a/ponysaytruncater.c b/ponysaytruncater.c index 9c7191e..a89b1e0 100644 --- a/ponysaytruncater.c +++ b/ponysaytruncater.c @@ -1,58 +1,37 @@ -/** - * ponysaytruncater — Output truncater used by ponysay to stop large ponies from being printed badly. +/* ponysaytruncater + * Output truncater used by ponysay to stop + * large ponies from being printed badly. * - * DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + * Licensed under WTFPL * See COPYING for details */ #include - - #define String char* #define boolean char - #define true 1 #define false 0 - - -/** - * Stdin file descriptor ID - */ +/* Stdin file descriptor ID */ #define STDIN 0 - - -/** - * The number of columns on the current line - */ +/* The number of columns on the current line */ static int x = 0; -/** - * Escape sequence state - */ +/* Escape sequence state */ static int esc = 0; -/** - * Last bytes as written - */ +/* Last bytes as written */ static boolean ok = true; - - - void write(char b, int width); int toInt(String string); - -/** - *

Mane method!

- *

+/* Mane method! * The only argument, in addition to the executed file, * should be the width of the terminal which you get by * adding `tput cols || echo 0` as and argument. - *

- * + * * @param argc The number of startup arguments * @param argv The startup arguments, the first is the file itself * @@ -60,115 +39,116 @@ int toInt(String string); */ void main(int argc, String* argv) { - int width = 0; - if (argc > 1) - width = toInt(*(argv + 1)); - - char b = 0; - - if (width > 15) //sanity - while (read(STDIN, &b, 1)) - write(b, width); - else - while (read(STDIN, &b, 1)) - printf("%c", b); + int width = 0; + if (argc > 1) + width = toInt(*(argv + 1)); + + char b = 0; + + if (width > 15) /* sanity */ + while (read(STDIN, &b, 1)) + write(b, width); + else + while (read(STDIN, &b, 1)) + printf("%c", b); } - -/** - * Writes a character to stdout, iff it fits within the terminal +/* Writes a character to stdout, iff it fits within the terminal * * @param b The character (byte) to write * @param width The width of the terminal */ void write(char b, int width) { - int i; - char nx; - - if (esc == 0) + int i; + char nx; + + if (esc == 0) { - if (b == '\n') + if (b == '\n') { - if (x >= width) + if (x >= width) { - // Reset background colour - write('\e', width); - write('[', width); - write('4', width); - write('9', width); - write('m', width); + /* Reset background colour */ + write('\e', width); + write('[', width); + write('4', width); + write('9', width); + write('m', width); } - x = -1; + x = -1; } - else if (b == '\t') + else if (b == '\t') { - // Tab to next pos ≡₈ 0 - nx = 8 - (x & 7); - for (i = 0; i < nx; i++) - write(' ', width); - return; //(!) + /* Tab to next pos ≡₈ 0 */ + nx = 8 - (x & 7); + for (i = 0; i < nx; i++) + write(' ', width); + return; /* (!) */ } - else if (b == '\e') - esc = 1; + else if (b == '\e') + esc = 1; } - else if (esc == 1) + else if (esc == 1) { - if (b == '[') esc = 2; //CSI ends with a letter, m is for colour - else if (b == ']') esc = 3; //OSI, OSI P is for palett editing in Linux VT - else esc = 10; //Nothing to see here, move along + /* CSI ends with a letter, m is for colour + OSI, OSI P is for palett editing in Linux VT */ + if (b == '[') esc = 2; + else if (b == ']') esc = 3; + else esc = 10; /* Nothing to see here, move along */ } - else if (esc == 2) + else if (esc == 2) { - if ((('a' <= b) && (b <= 'z')) || (('A' <= b) && (b <= 'Z'))) - esc = 10; + if ((('a' <= b) && (b <= 'z')) || (('A' <= b) && (b <= 'Z'))) + esc = 10; } - else if ((esc == 3) && (b == 'P')) + else if ((esc == 3) && (b == 'P')) { - esc = ~0; + esc = ~0; } - else if (esc < 0) + else if (esc < 0) { - esc--; - if (esc == ~7) - esc = 10; + esc--; + if (esc == ~7) + esc = 10; } - else - esc = 10; - - if ( // Can be printed: - (x < width) || // within bounds ∨ - (esc != 0) || // ∨ escape sequence ∨ - (ok && ((b & 0xC0) == 0x80))) // ∨ last with printed ∧ not first byte in character + else + esc = 10; + + if ( + /* Can be printed: + within bounds ∨ + ∨ escape sequence ∨ + ∨ last with printed ∧ not first byte in character */ + (x < width) || + (esc != 0) || + (ok && ((b & 0xC0) == 0x80))) { - printf("%c", b); - if ((esc == 0) && ((b & 0xC0) != 0x80)) // Count up columns of not in escape sequnce and - x++; // the byte is not the first byte in the character - ok = true; + printf("%c", b); + if ((esc == 0) && ((b & 0xC0) != 0x80)) + /* Count up columns of not in escape sequnce and */ + x++; /* the byte is not the first byte in the character */ + ok = true; } - else - ok = false; - - if (esc == 10) - esc = 0; + else + ok = false; + + if (esc == 10) + esc = 0; } - -/** - * Converts a string to an integer - * +/* Converts a string to an integer * @param string The string to convert * @return The integer represented by the string */ int toInt(String string) { - int rc = 0; - String str = string; - char c = 0; - - while ((c = *str++) != 0) - rc = (rc << 1) + (rc << 3) - (c & 15); - - return -rc; + int rc = 0; + String str = string; + char c = 0; + + while ((c = *str++) != 0) + rc = (rc << 1) + (rc << 3) - (c & 15); + + return -rc; } - -- cgit From 013b6558c97d8ef6732db85525589b5a26280e05 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 May 2012 19:24:10 +0200 Subject: minor documentation fix --- ponysaytruncater.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ponysaytruncater.c b/ponysaytruncater.c index a89b1e0..58f3d91 100644 --- a/ponysaytruncater.c +++ b/ponysaytruncater.c @@ -91,10 +91,8 @@ void write(char b, int width) } else if (esc == 1) { - /* CSI ends with a letter, m is for colour - OSI, OSI P is for palett editing in Linux VT */ - if (b == '[') esc = 2; - else if (b == ']') esc = 3; + if (b == '[') esc = 2; /* CSI: CSI ends with a letter, m is for colour */ + else if (b == ']') esc = 3; /* OSI: OSI P is for palett editing in Linux VT */ else esc = 10; /* Nothing to see here, move along */ } else if (esc == 2) @@ -117,8 +115,8 @@ void write(char b, int width) if ( /* Can be printed: - within bounds ∨ - ∨ escape sequence ∨ + within bounds ∨ + ∨ escape sequence ∨ ∨ last with printed ∧ not first byte in character */ (x < width) || (esc != 0) || @@ -138,6 +136,7 @@ void write(char b, int width) } /* Converts a string to an integer + * * @param string The string to convert * @return The integer represented by the string */ -- cgit From 96480e57a0e0a793a31a1a65df0452e95cf092d7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 12 May 2012 21:35:14 +0300 Subject: You forgot to increase version number here. --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ponysay b/ponysay index e07e1e3..88e5941 100755 --- a/ponysay +++ b/ponysay @@ -1,6 +1,6 @@ #!/usr/bin/env bash -version=0.8 +version=0.9 SYSTEMPONIES=/usr/share/ponies HOMEPONIES="${HOME}/.ponies" pony="*" -- cgit From b82a391c1fc8de626cff32853a3d8e5e68babcb9 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sun, 13 May 2012 02:01:01 +0200 Subject: Reparied errors about missing directories in isolated install enviroments like sandboxes --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b087bb1..5c47e1a 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,12 @@ install: mkdir -p "$(DESTDIR)/usr/share/ttyponies" cp -r ponies/*.pony "$(DESTDIR)/usr/share/ponies/" cp -r ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" - install "ponysay" "$(DESTDIR)/usr/bin/ponysay" + install -D "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" if [ -d "$(DESTDIR)/usr/share/zsh/site-functions/" ]; then install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" - install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" + install -D "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" -- cgit From e147227c1c8e86b69ee2cfa792f225954ffdc4d2 Mon Sep 17 00:00:00 2001 From: Elis Axelsson Date: Sun, 13 May 2012 02:01:17 +0200 Subject: Added rule, make clean --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 5c47e1a..4746c8c 100644 --- a/Makefile +++ b/Makefile @@ -22,3 +22,6 @@ uninstall: if [ -e "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" ]; then unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" + +clean: + rm -r ponysaytruncater -- cgit From 900088cd476e10a824d29a78999073a6eef06648 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Sun, 13 May 2012 19:35:00 +0300 Subject: Avoid incompatible flags at all costs. `mkdir` creates if it doesn't already exist, so it won't be an issue to replace `install -D` with `mkdir` then `install`. --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4746c8c..f7ef71d 100644 --- a/Makefile +++ b/Makefile @@ -4,12 +4,14 @@ install: mkdir -p "$(DESTDIR)/usr/share/ttyponies" cp -r ponies/*.pony "$(DESTDIR)/usr/share/ponies/" cp -r ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" - install -D "ponysay" "$(DESTDIR)/usr/bin/ponysay" + mkdir -p "$(DESTDIR)/use/bin/" + install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" if [ -d "$(DESTDIR)/usr/share/zsh/site-functions/" ]; then install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" - install -D "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" + mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/" + install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" -- cgit From d0cad17e9e1f3b57c820bd3c4ddda082cfbcddee Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Sun, 13 May 2012 19:35:53 +0200 Subject: Stupid web interface tab spacing length... --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f7ef71d..d802960 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,13 @@ install: mkdir -p "$(DESTDIR)/usr/share/ttyponies" cp -r ponies/*.pony "$(DESTDIR)/usr/share/ponies/" cp -r ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" - mkdir -p "$(DESTDIR)/use/bin/" + mkdir -p "$(DESTDIR)/use/bin/" install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" if [ -d "$(DESTDIR)/usr/share/zsh/site-functions/" ]; then install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" - 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/bash-completion/completions/" install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" -- cgit From 7897783a8fbbbde5bbf4043351765c20443b0592 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 13 May 2012 21:09:31 +0300 Subject: Update Makefile --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d802960..e8d7b7e 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ install: mkdir -p "$(DESTDIR)/usr/share/ttyponies" cp -r ponies/*.pony "$(DESTDIR)/usr/share/ponies/" cp -r ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" - mkdir -p "$(DESTDIR)/use/bin/" + mkdir -p "$(DESTDIR)/usr/bin/" install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" -- cgit From 85c54340c364a641c6846e15ff052f1928e3c0af Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 21 May 2012 22:55:31 +0300 Subject: Fixed typo in comment. --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ponysay b/ponysay index 88e5941..6f1cf4e 100755 --- a/ponysay +++ b/ponysay @@ -45,7 +45,7 @@ Options: EOF } -# if no stdin and no argumrnts then print usage and exit +# if no stdin and no arguments then print usage and exit if [[ -t 0 && $# == 0 ]]; then usage exit -- cgit From 1e64e48b9a9b3687a75aff8e6d8c398f911dcb26 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Mon, 18 Jun 2012 00:51:04 +0200 Subject: symlink the pony names --- ponies/carrottop.pony | 1 + ponies/goldenharvest.pony | 1 + ponies/harpass.pony | 1 + ponies/heartstrings.pony | 1 + ponies/minuette.pony | 1 + ponies/noteworthy.pony | 1 + ponies/perry.pony | 1 + ponies/pokeypierce.pony | 1 + 8 files changed, 8 insertions(+) create mode 120000 ponies/carrottop.pony create mode 120000 ponies/goldenharvest.pony create mode 120000 ponies/harpass.pony create mode 120000 ponies/heartstrings.pony create mode 120000 ponies/minuette.pony create mode 120000 ponies/noteworthy.pony create mode 120000 ponies/perry.pony create mode 120000 ponies/pokeypierce.pony diff --git a/ponies/carrottop.pony b/ponies/carrottop.pony new file mode 120000 index 0000000..222bb68 --- /dev/null +++ b/ponies/carrottop.pony @@ -0,0 +1 @@ +carrot.pony \ No newline at end of file diff --git a/ponies/goldenharvest.pony b/ponies/goldenharvest.pony new file mode 120000 index 0000000..222bb68 --- /dev/null +++ b/ponies/goldenharvest.pony @@ -0,0 +1 @@ +carrot.pony \ No newline at end of file diff --git a/ponies/harpass.pony b/ponies/harpass.pony new file mode 120000 index 0000000..a05bf5d --- /dev/null +++ b/ponies/harpass.pony @@ -0,0 +1 @@ +lyra.pony \ No newline at end of file diff --git a/ponies/heartstrings.pony b/ponies/heartstrings.pony new file mode 120000 index 0000000..a05bf5d --- /dev/null +++ b/ponies/heartstrings.pony @@ -0,0 +1 @@ +lyra.pony \ No newline at end of file diff --git a/ponies/minuette.pony b/ponies/minuette.pony new file mode 120000 index 0000000..9278c09 --- /dev/null +++ b/ponies/minuette.pony @@ -0,0 +1 @@ +colgate.pony \ No newline at end of file diff --git a/ponies/noteworthy.pony b/ponies/noteworthy.pony new file mode 120000 index 0000000..d32b6d7 --- /dev/null +++ b/ponies/noteworthy.pony @@ -0,0 +1 @@ +blues.pony \ No newline at end of file diff --git a/ponies/perry.pony b/ponies/perry.pony new file mode 120000 index 0000000..c66432d --- /dev/null +++ b/ponies/perry.pony @@ -0,0 +1 @@ +pokey.pony \ No newline at end of file diff --git a/ponies/pokeypierce.pony b/ponies/pokeypierce.pony new file mode 120000 index 0000000..c66432d --- /dev/null +++ b/ponies/pokeypierce.pony @@ -0,0 +1 @@ +pokey.pony \ No newline at end of file -- cgit From 293f4d7403e55d9c597adc561081aff5aa0f621f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 2 Jul 2012 11:35:33 +0200 Subject: cleaning up the make file and installing zsh-completion even if target directory is missing --- Makefile | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index e8d7b7e..3ae7314 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,27 @@ -install: +all: ponysaytruncater + +ponysaytruncater: gcc -o "ponysaytruncater" "ponysaytruncater.c" + +install: all mkdir -p "$(DESTDIR)/usr/share/ponies" mkdir -p "$(DESTDIR)/usr/share/ttyponies" - cp -r ponies/*.pony "$(DESTDIR)/usr/share/ponies/" - cp -r ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" + cp ponies/*.pony "$(DESTDIR)/usr/share/ponies/" + cp ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" + mkdir -p "$(DESTDIR)/usr/bin/" install "ponysay" "$(DESTDIR)/usr/bin/ponysay" install -s "ponysaytruncater" "$(DESTDIR)/usr/bin/ponysaytruncater" ln -sf "ponysay" "$(DESTDIR)/usr/bin/ponythink" - if [ -d "$(DESTDIR)/usr/share/zsh/site-functions/" ]; then install "completion/zsh-completion.zsh" "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi + + 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/bash-completion/completions/" + install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" + mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/" install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" - mkdir -p "$(DESTDIR)/usr/share/bash-completion/completions/" - install "completion/bash-completion.sh" "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" uninstall: rm -fr "$(DESTDIR)/usr/share/ponies" @@ -21,9 +29,9 @@ uninstall: unlink "$(DESTDIR)/usr/bin/ponysay" unlink "$(DESTDIR)/usr/bin/ponysaytruncater" unlink "$(DESTDIR)/usr/bin/ponythink" - if [ -e "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay" ]; then unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; fi + unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" clean: - rm -r ponysaytruncater + rm -r "ponysaytruncater" -- cgit From 63e848a93f69e2028532cf89aa44eded21737cd5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jul 2012 09:57:53 +0200 Subject: Ponies are truncated on height under TTY, leaving 2 lines for shell interaction. export PONYSAY_BOTTOM=1 to show bottom instread of top. --- ponysay | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/ponysay b/ponysay index 6f1cf4e..a04d8d7 100755 --- a/ponysay +++ b/ponysay @@ -59,10 +59,28 @@ say() { echo -ne '\ec' fi - exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (ponysaytruncater `tput cols || echo 0` 2>/dev/null || - ${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null || - ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || - cat) + function wtrunc + { + ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || + cat + } + + function htrunc + { + head --lines=$(( $(stty size <&2 | cut -d ' ' -f 1) - 2 )) + } + + if [ "$TERM" = "linux" ]; then + if [ "$PONYSAY_BOTTOM" = 'yes' ] || [ "$PONYSAY_BOTTOM" = 'y' ] || [ "$PONYSAY_BOTTOM" = '1' ]; then + exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | tac | htrunc | tac + else + exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | htrunc + fi + else + exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc + fi } while getopts f:W:lhv OPT -- cgit From 4aa332d15994425b871202bcaeb17b8f900cfbb0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jul 2012 10:17:12 +0200 Subject: mentioning ponypipe as an [better] alternative to the script to ponify fortune in README --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0bc5f6f..d4983c1 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,9 @@ Or if you have a specific pony in your mind: ### Pony fortune on terminal startup This requires that you have the `fortune` utility installed. You can install it from your repositories or just fetch the source code from [here](ftp://ftp.ibiblio.org/pub/linux/games/amusements/fortune/). - -You can try [this](http://www.reddit.com/r/mylittlelinux/comments/srixi/using_ponysay_with_a_ponified_fortune_warning/) script to ponify fortunes. - + +You can try [this](http://www.reddit.com/r/mylittlelinux/comments/srixi/using_ponysay_with_a_ponified_fortune_warning/) script or [ponypipe](https://github.com/maandree/ponypipe) to ponify fortunes. + Edit your `~/.bashrc` and add this to the end of the file fortune | ponysay -- cgit From 404b144c796ac51c3ca03aa7a2a7de9468938a42 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 4 Jul 2012 09:39:37 +0200 Subject: adding manpage from github.com/kragniz/debian --- Makefile | 3 +++ manpage.6 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 manpage.6 diff --git a/Makefile b/Makefile index 3ae7314..fceafe5 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,9 @@ install: all mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/" install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" + mkdir -p "$(DESTDIR)/usr/share/man/man6" + install "manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6" + uninstall: rm -fr "$(DESTDIR)/usr/share/ponies" rm -fr "$(DESTDIR)/usr/share/ttyponies" diff --git a/manpage.6 b/manpage.6 new file mode 100644 index 0000000..0e598ac --- /dev/null +++ b/manpage.6 @@ -0,0 +1,57 @@ +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PONYSAY SECTION "April 10, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ponysay \- A cowsay wrapper with ponies +.SH SYNOPSIS +.B ponysay +.RI [ options ] [ message ] +.br +.SH DESCRIPTION +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBponysay\fP displays an image of a pony saying some text provided by the user +in a terminal. It is a wrapper for \fIcowsay\fP. If run with no arguments, it +accepts standard input, word-wraps the message given at about 40 columns, and +prints the pony saying the given message on standard output. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-h +Show summary of options. +.TP +.B \-v +Show version of program. +.TP +.B \-l +List ponyfiles +.TP +.B \-f [ name ] +Select a pony (Either a filename or a pony name) +.TP +.B \-W [ column ] +The screen column where the message should be wrapped +.SH SEE ALSO +.BR cowsay (6). +.br +.SH AUTHOR +ponysay was written by Erkin Batu Altunbaş . +.PP +This manual page was written by Louis Taylor , +for the Debian project (and may be used by others). -- cgit From 413b5d581c3ac02edd4a4ae5c19257d84b0a4309 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 4 Jul 2012 09:45:18 +0200 Subject: moving manpage to section 1 (consitent with cowsay) --- Makefile | 5 +++-- manpage.1 | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ manpage.6 | 57 --------------------------------------------------------- 3 files changed, 60 insertions(+), 59 deletions(-) create mode 100644 manpage.1 delete mode 100644 manpage.6 diff --git a/Makefile b/Makefile index fceafe5..467a000 100644 --- a/Makefile +++ b/Makefile @@ -23,8 +23,8 @@ install: all mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/" install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" - mkdir -p "$(DESTDIR)/usr/share/man/man6" - install "manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6" + mkdir -p "$(DESTDIR)/usr/share/man/man1" + install "manpage.1" "$(DESTDIR)/usr/share/man/man1/ponysay.1" uninstall: rm -fr "$(DESTDIR)/usr/share/ponies" @@ -35,6 +35,7 @@ uninstall: unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" + unlink "$(DESTDIR)/usr/share/man/man1/ponysay.1" clean: rm -r "ponysaytruncater" diff --git a/manpage.1 b/manpage.1 new file mode 100644 index 0000000..0e598ac --- /dev/null +++ b/manpage.1 @@ -0,0 +1,57 @@ +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PONYSAY SECTION "April 10, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ponysay \- A cowsay wrapper with ponies +.SH SYNOPSIS +.B ponysay +.RI [ options ] [ message ] +.br +.SH DESCRIPTION +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBponysay\fP displays an image of a pony saying some text provided by the user +in a terminal. It is a wrapper for \fIcowsay\fP. If run with no arguments, it +accepts standard input, word-wraps the message given at about 40 columns, and +prints the pony saying the given message on standard output. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-h +Show summary of options. +.TP +.B \-v +Show version of program. +.TP +.B \-l +List ponyfiles +.TP +.B \-f [ name ] +Select a pony (Either a filename or a pony name) +.TP +.B \-W [ column ] +The screen column where the message should be wrapped +.SH SEE ALSO +.BR cowsay (6). +.br +.SH AUTHOR +ponysay was written by Erkin Batu Altunbaş . +.PP +This manual page was written by Louis Taylor , +for the Debian project (and may be used by others). diff --git a/manpage.6 b/manpage.6 deleted file mode 100644 index 0e598ac..0000000 --- a/manpage.6 +++ /dev/null @@ -1,57 +0,0 @@ -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH PONYSAY SECTION "April 10, 2012" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -ponysay \- A cowsay wrapper with ponies -.SH SYNOPSIS -.B ponysay -.RI [ options ] [ message ] -.br -.SH DESCRIPTION -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBponysay\fP displays an image of a pony saying some text provided by the user -in a terminal. It is a wrapper for \fIcowsay\fP. If run with no arguments, it -accepts standard input, word-wraps the message given at about 40 columns, and -prints the pony saying the given message on standard output. -.SH OPTIONS -A summary of options is included below. -.TP -.B \-h -Show summary of options. -.TP -.B \-v -Show version of program. -.TP -.B \-l -List ponyfiles -.TP -.B \-f [ name ] -Select a pony (Either a filename or a pony name) -.TP -.B \-W [ column ] -The screen column where the message should be wrapped -.SH SEE ALSO -.BR cowsay (6). -.br -.SH AUTHOR -ponysay was written by Erkin Batu Altunbaş . -.PP -This manual page was written by Louis Taylor , -for the Debian project (and may be used by others). -- cgit From 81b9e4f0b3e398d4fb7872b55b4fcb601f7902f0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 4 Jul 2012 09:47:29 +0200 Subject: fixing 'se also' reference to cowsay in manpage (wrong section) --- manpage.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manpage.1 b/manpage.1 index 0e598ac..b0d68ca 100644 --- a/manpage.1 +++ b/manpage.1 @@ -48,7 +48,7 @@ Select a pony (Either a filename or a pony name) .B \-W [ column ] The screen column where the message should be wrapped .SH SEE ALSO -.BR cowsay (6). +.BR cowsay (1). .br .SH AUTHOR ponysay was written by Erkin Batu Altunbaş . -- cgit From 46c3e0d74e25de74cfbb84fb2d6f04e7f6e318a9 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 4 Jul 2012 10:32:12 +0200 Subject: improving manpage + minor change in ponysay --help + sorting credits file --- CREDITS | 2 +- manpage.1 | 58 +++++++++++++++++++++++++++++++++++++++++++++------------- ponysay | 14 ++++++++------ 3 files changed, 54 insertions(+), 20 deletions(-) diff --git a/CREDITS b/CREDITS index 9367855..79a4281 100644 --- a/CREDITS +++ b/CREDITS @@ -2,9 +2,9 @@ # Active developers Erkin Batu Altunbaş -Jan Alexander Steffens Mattias Andrée Sven-Hendrik Haase +Jan Alexander Steffens # Patchers and other contributors Duane Bekaert diff --git a/manpage.1 b/manpage.1 index b0d68ca..92fbf50 100644 --- a/manpage.1 +++ b/manpage.1 @@ -2,7 +2,7 @@ .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) -.TH PONYSAY SECTION "April 10, 2012" +.TH PONYSAY SECTION "July 4, 2012" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -19,17 +19,20 @@ ponysay \- A cowsay wrapper with ponies .SH SYNOPSIS .B ponysay -.RI [ options ] [ message ] +.RI [ options ] +.RI [ message ] .br .SH DESCRIPTION .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. -\fBponysay\fP displays an image of a pony saying some text provided by the user -in a terminal. It is a wrapper for \fIcowsay\fP. If run with no arguments, it -accepts standard input, word-wraps the message given at about 40 columns, and -prints the pony saying the given message on standard output. +\fBponysay\fP displays an image of a pony saying some text provided by the user in a terminal. +It is a wrapper for \fIcowsay\fP. If \fImessage\fP is not provided, it accepts standard input, +word-wraps the message given at about 40 columns, and prints the pony saying the given message on standard output. +.PP +If no arguments are provided, the program only accepts standard input piped from another program, a file or +either here documents or here strings (see man bash(1) for details on here document/string.) .SH OPTIONS A summary of options is included below. .TP @@ -40,18 +43,47 @@ Show summary of options. Show version of program. .TP .B \-l -List ponyfiles +List pony files. .TP -.B \-f [ name ] -Select a pony (Either a filename or a pony name) +.B \-f \fIname\fP +Select a pony (either a file name or a pony name.) .TP -.B \-W [ column ] +.B \-W \fIcolumn\fP The screen column where the message should be wrapped +.SH ENVIRONMENT +.TP +.B PONYSAY_BOTTOM +Under TTY (Linux VT), if the output is larger the the screen's height, only the beginning is +printed, leaving 2 blank lines. If you want the buttom to be printed rather the the beginning +you can export \fBPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. +.SH BUG +Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH SEE ALSO .BR cowsay (1). +.BR fortune (1). .br .SH AUTHOR -ponysay was written by Erkin Batu Altunbaş . +ponysay was written by Erkin Batu Altunbaş +with contributions from Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens &a. +.\" See file CREDITS for full list +.PP +This manual page was written by Louis Taylor +for the Debian project (and may be used by others), and edited +by Mattias Andrée . +.br +.SH COPYRIGHT +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +.br +Version 2, December 2004 +.PP +Copyright (C) 2012 Erkin Batu Altunbaş +.PP +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. +.PP +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +.br +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION .PP -This manual page was written by Louis Taylor , -for the Debian project (and may be used by others). + 0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/ponysay b/ponysay index a04d8d7..4b5e912 100755 --- a/ponysay +++ b/ponysay @@ -34,14 +34,16 @@ usage() { Usage: ${0##*/} [options] [message] -If [message] is not provided, reads the message from STDIN +If [message] is not provided, reads the message from STDIN. Options: - -v Show version and exit - -h Show this help and exit - -l List ponyfiles. - -f[name] Select a pony (Either a filename or a pony name) - -W[column] The screen column where the message should be wrapped + -v Show version and exit. + -h Show this help and exit. + -l List pony files. + -f[name] Select a pony (either a file name or a pony name.) + -W[column] The screen column where the message should be wrapped. + +See man ponysay(1) for more information. EOF } -- cgit From 738dc690ebfd902f0168e47a7a875c5708b8ce18 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 4 Jul 2012 11:27:06 +0200 Subject: m --- manpage.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manpage.1 b/manpage.1 index 92fbf50..d5b8ec9 100644 --- a/manpage.1 +++ b/manpage.1 @@ -59,7 +59,7 @@ you can export \fBPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP .SH BUG Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH SEE ALSO -.BR cowsay (1). +.BR cowsay (1), .BR fortune (1). .br .SH AUTHOR -- cgit From aa0b3c676d3e128ee7e6c72894919adf3b7c5ff5 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Wed, 4 Jul 2012 23:21:21 -0400 Subject: In synchro for ponies and ttyponies --- ponies/timeturner.pony | 1 + ttyponies/carrottop.pony | 1 + ttyponies/goldenharvest.pony | 1 + ttyponies/harpass.pony | 1 + ttyponies/heartstrings.pony | 1 + ttyponies/minuette.pony | 1 + ttyponies/noteworthy.pony | 1 + ttyponies/perry.pony | 1 + ttyponies/pokeypierce.pony | 1 + ttyponies/timeturner.pony | 1 + 10 files changed, 10 insertions(+) create mode 120000 ponies/timeturner.pony create mode 120000 ttyponies/carrottop.pony create mode 120000 ttyponies/goldenharvest.pony create mode 120000 ttyponies/harpass.pony create mode 120000 ttyponies/heartstrings.pony create mode 120000 ttyponies/minuette.pony create mode 120000 ttyponies/noteworthy.pony create mode 120000 ttyponies/perry.pony create mode 120000 ttyponies/pokeypierce.pony create mode 120000 ttyponies/timeturner.pony diff --git a/ponies/timeturner.pony b/ponies/timeturner.pony new file mode 120000 index 0000000..df51240 --- /dev/null +++ b/ponies/timeturner.pony @@ -0,0 +1 @@ +./doctornohat.pony \ No newline at end of file diff --git a/ttyponies/carrottop.pony b/ttyponies/carrottop.pony new file mode 120000 index 0000000..dc31181 --- /dev/null +++ b/ttyponies/carrottop.pony @@ -0,0 +1 @@ +./carrot.pony \ No newline at end of file diff --git a/ttyponies/goldenharvest.pony b/ttyponies/goldenharvest.pony new file mode 120000 index 0000000..dc31181 --- /dev/null +++ b/ttyponies/goldenharvest.pony @@ -0,0 +1 @@ +./carrot.pony \ No newline at end of file diff --git a/ttyponies/harpass.pony b/ttyponies/harpass.pony new file mode 120000 index 0000000..4aa840b --- /dev/null +++ b/ttyponies/harpass.pony @@ -0,0 +1 @@ +./lyra.pony \ No newline at end of file diff --git a/ttyponies/heartstrings.pony b/ttyponies/heartstrings.pony new file mode 120000 index 0000000..4aa840b --- /dev/null +++ b/ttyponies/heartstrings.pony @@ -0,0 +1 @@ +./lyra.pony \ No newline at end of file diff --git a/ttyponies/minuette.pony b/ttyponies/minuette.pony new file mode 120000 index 0000000..565e5b5 --- /dev/null +++ b/ttyponies/minuette.pony @@ -0,0 +1 @@ +./colgate.pony \ No newline at end of file diff --git a/ttyponies/noteworthy.pony b/ttyponies/noteworthy.pony new file mode 120000 index 0000000..fca4a4f --- /dev/null +++ b/ttyponies/noteworthy.pony @@ -0,0 +1 @@ +./blues.pony \ No newline at end of file diff --git a/ttyponies/perry.pony b/ttyponies/perry.pony new file mode 120000 index 0000000..93a1368 --- /dev/null +++ b/ttyponies/perry.pony @@ -0,0 +1 @@ +./pokey.pony \ No newline at end of file diff --git a/ttyponies/pokeypierce.pony b/ttyponies/pokeypierce.pony new file mode 120000 index 0000000..93a1368 --- /dev/null +++ b/ttyponies/pokeypierce.pony @@ -0,0 +1 @@ +./pokey.pony \ No newline at end of file diff --git a/ttyponies/timeturner.pony b/ttyponies/timeturner.pony new file mode 120000 index 0000000..df51240 --- /dev/null +++ b/ttyponies/timeturner.pony @@ -0,0 +1 @@ +./doctornohat.pony \ No newline at end of file -- cgit From 4063e82a1512515358480b53d87223f71e0efc20 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Wed, 4 Jul 2012 23:30:29 -0400 Subject: Migration to /usr/share/ponysay/{,tty}ponies (need more reviews) --- Makefile | 13 +++++++------ completion/bash-completion.sh | 4 ++-- completion/zsh-completion.zsh | 2 +- ponysay | 4 ++-- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 3ae7314..754009c 100644 --- a/Makefile +++ b/Makefile @@ -4,10 +4,11 @@ ponysaytruncater: gcc -o "ponysaytruncater" "ponysaytruncater.c" install: all - mkdir -p "$(DESTDIR)/usr/share/ponies" - mkdir -p "$(DESTDIR)/usr/share/ttyponies" - cp ponies/*.pony "$(DESTDIR)/usr/share/ponies/" - cp ttyponies/*.pony "$(DESTDIR)/usr/share/ttyponies/" + mkdir -p "$(DESTDIR)/usr/share/ponysay/" + mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies" + mkdir -p "$(DESTDIR)/usr/share/ponysay/ttyponies" + cp ponies/*.pony "$(DESTDIR)/usr/share/ponysay/ponies/" + cp ttyponies/*.pony "$(DESTDIR)/usr/share/ponysay/ttyponies/" mkdir -p "$(DESTDIR)/usr/bin/" install "ponysay" "$(DESTDIR)/usr/bin/ponysay" @@ -24,8 +25,8 @@ install: all install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" uninstall: - rm -fr "$(DESTDIR)/usr/share/ponies" - rm -fr "$(DESTDIR)/usr/share/ttyponies" + rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" + rm -fr "$(DESTDIR)/usr/share/ponysay/ttyponies" unlink "$(DESTDIR)/usr/bin/ponysay" unlink "$(DESTDIR)/usr/bin/ponysaytruncater" unlink "$(DESTDIR)/usr/bin/ponythink" diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh index 31daef2..54b50fe 100644 --- a/completion/bash-completion.sh +++ b/completion/bash-completion.sh @@ -10,10 +10,10 @@ _ponysay() if [[ $prev = "-f" ]]; then COMPREPLY=() - sysponies=/usr/share/ponies/ + sysponies=/usr/share/ponysay/ponies/ usrponies=~/.ponies/ if [[ $TERM = "linux" ]]; then - sysponies=/usr/share/ttyponies/ + sysponies=/usr/share/ponysay/ttyponies/ usrponies=~/.ttyponies/ fi diff --git a/completion/zsh-completion.zsh b/completion/zsh-completion.zsh index 26116d2..07b2ebf 100644 --- a/completion/zsh-completion.zsh +++ b/completion/zsh-completion.zsh @@ -3,7 +3,7 @@ _shortopts=( '-v[Show version and exit]' '-h[Show this help and exit]' '-l[list ponyfiles]' - '-f[Select a pony (either a filename or a ponyname]: :_path_files -W "/usr/share/ponies" -g "*(\:r)"' + '-f[Select a pony (either a filename or a ponyname]: :_path_files -W "/usr/share/ponysay/ponies" -g "*(\:r)"' '-W[The screen column where the message should be wrapped]' ) _arguments -s : \ diff --git a/ponysay b/ponysay index a04d8d7..b3c31b8 100755 --- a/ponysay +++ b/ponysay @@ -1,13 +1,13 @@ #!/usr/bin/env bash version=0.9 -SYSTEMPONIES=/usr/share/ponies +SYSTEMPONIES=/usr/share/ponysay/ponies HOMEPONIES="${HOME}/.ponies" pony="*" wrap= if [ "$TERM" = "linux" ]; then - SYSTEMPONIES=/usr/share/ttyponies + SYSTEMPONIES=/usr/share/ponysay/ttyponies HOMEPONIES="${HOME}/.ttyponies" fi -- cgit From 7e7521aef4a510a9ebdebdcb91685bb19ae1f78a Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Wed, 4 Jul 2012 23:58:27 -0400 Subject: The fourth wave of mystery pack toys includes Twilight Velvet who shares the same coat color, eye color, and cutie mark as Twilight Sparkle's mother --- ponies/twilightvelvet.pony | 1 + ttyponies/twilightvelvet.pony | 1 + 2 files changed, 2 insertions(+) create mode 120000 ponies/twilightvelvet.pony create mode 120000 ttyponies/twilightvelvet.pony diff --git a/ponies/twilightvelvet.pony b/ponies/twilightvelvet.pony new file mode 120000 index 0000000..6361d03 --- /dev/null +++ b/ponies/twilightvelvet.pony @@ -0,0 +1 @@ +./mrssparkle.pony \ No newline at end of file diff --git a/ttyponies/twilightvelvet.pony b/ttyponies/twilightvelvet.pony new file mode 120000 index 0000000..6361d03 --- /dev/null +++ b/ttyponies/twilightvelvet.pony @@ -0,0 +1 @@ +./mrssparkle.pony \ No newline at end of file -- cgit From cb1386607d234a8552e453ddef1445f6e6289f22 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Wed, 4 Jul 2012 23:59:54 -0400 Subject: trixielulamoon and lulamoon, from the blindbags now are linked from trixie --- ponies/lulamoon.pony | 1 + ponies/trixielulamoon.pony | 1 + ttyponies/lulamoon.pony | 1 + ttyponies/trixielulamoon.pony | 1 + 4 files changed, 4 insertions(+) create mode 120000 ponies/lulamoon.pony create mode 120000 ponies/trixielulamoon.pony create mode 120000 ttyponies/lulamoon.pony create mode 120000 ttyponies/trixielulamoon.pony diff --git a/ponies/lulamoon.pony b/ponies/lulamoon.pony new file mode 120000 index 0000000..76684f9 --- /dev/null +++ b/ponies/lulamoon.pony @@ -0,0 +1 @@ +./trixie.pony \ No newline at end of file diff --git a/ponies/trixielulamoon.pony b/ponies/trixielulamoon.pony new file mode 120000 index 0000000..76684f9 --- /dev/null +++ b/ponies/trixielulamoon.pony @@ -0,0 +1 @@ +./trixie.pony \ No newline at end of file diff --git a/ttyponies/lulamoon.pony b/ttyponies/lulamoon.pony new file mode 120000 index 0000000..76684f9 --- /dev/null +++ b/ttyponies/lulamoon.pony @@ -0,0 +1 @@ +./trixie.pony \ No newline at end of file diff --git a/ttyponies/trixielulamoon.pony b/ttyponies/trixielulamoon.pony new file mode 120000 index 0000000..76684f9 --- /dev/null +++ b/ttyponies/trixielulamoon.pony @@ -0,0 +1 @@ +./trixie.pony \ No newline at end of file -- cgit From 63849f33259e162396da696e0a66976d705b81a6 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 5 Jul 2012 00:27:35 -0400 Subject: Forget the /home/fyrefly right place ./.ponysay/{,tty}ponies --- ponysay | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ponysay b/ponysay index 62d1ac8..2f60ab3 100755 --- a/ponysay +++ b/ponysay @@ -2,13 +2,13 @@ version=0.9 SYSTEMPONIES=/usr/share/ponysay/ponies -HOMEPONIES="${HOME}/.ponies" +HOMEPONIES="${HOME}/.ponysay/ponies" pony="*" wrap= if [ "$TERM" = "linux" ]; then SYSTEMPONIES=/usr/share/ponysay/ttyponies - HOMEPONIES="${HOME}/.ttyponies" + HOMEPONIES="${HOME}/.ponysay/ttyponies" fi cmd=cowsay -- cgit From 4a39ef423041bee3faafc99ee60bf0dbb1229868 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 5 Jul 2012 09:14:14 +0200 Subject: ponythink in manpage + environment variables PONYSAY_SHELL_LINES and PONYSAY_FULL_WIDTH --- Makefile | 2 ++ manpage.1 | 18 ++++++++++++++++-- ponysay | 17 ++++++++++++----- 3 files changed, 30 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 467a000..194fa29 100644 --- a/Makefile +++ b/Makefile @@ -25,6 +25,7 @@ install: all mkdir -p "$(DESTDIR)/usr/share/man/man1" install "manpage.1" "$(DESTDIR)/usr/share/man/man1/ponysay.1" + ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/man1/ponythink.1" uninstall: rm -fr "$(DESTDIR)/usr/share/ponies" @@ -36,6 +37,7 @@ uninstall: unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" unlink "$(DESTDIR)/usr/share/man/man1/ponysay.1" + unlink "$(DESTDIR)/usr/share/man/man1/ponythink.1" clean: rm -r "ponysaytruncater" diff --git a/manpage.1 b/manpage.1 index d5b8ec9..57c4222 100644 --- a/manpage.1 +++ b/manpage.1 @@ -22,6 +22,10 @@ ponysay \- A cowsay wrapper with ponies .RI [ options ] .RI [ message ] .br +.B ponythink +.RI [ options ] +.RI [ message ] +.br .SH DESCRIPTION .PP .\" TeX users may be more comfortable with the \fB\fP and @@ -33,6 +37,8 @@ word-wraps the message given at about 40 columns, and prints the pony saying the .PP If no arguments are provided, the program only accepts standard input piped from another program, a file or either here documents or here strings (see man bash(1) for details on here document/string.) +.PP +\fBponythink\fP is to \fIponysay\fP as \fIcowthink\fP is to \fIcowsay\fP. .SH OPTIONS A summary of options is included below. .TP @@ -54,8 +60,16 @@ The screen column where the message should be wrapped .TP .B PONYSAY_BOTTOM Under TTY (Linux VT), if the output is larger the the screen's height, only the beginning is -printed, leaving 2 blank lines. If you want the buttom to be printed rather the the beginning +printed, leaving two blank lines. If you want the buttom to be printed rather the the beginning you can export \fBPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. +.B PONYSAY_SHELL_LINES +Under TTY (Linux VT), if the output is larger the the screen's height, two lines are left blank. +If you want moer, or less, blank lines you can export \fBPONYSAY_SHELL_LINES\fP with the value +of how many blank lines you want. Naturally this takes effect if the output is not actually larger +than the screen. +.B PONYSAY_FULL_WIDTH +You can export \fBPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you +do not want the output to be truncated on the width to fit the terminal. .SH BUG Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH SEE ALSO @@ -86,4 +100,4 @@ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE .br TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION .PP - 0. You just DO WHAT THE FUCK YOU WANT TO. +0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/ponysay b/ponysay index 4b5e912..9b5b2af 100755 --- a/ponysay +++ b/ponysay @@ -63,15 +63,22 @@ say() { function wtrunc { - ponysaytruncater `tput cols || echo 0` 2>/dev/null || - ${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null || - ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || - cat + if [ "$PONYSAY_FULL_WIDTH" = 'no' ] || [ "$PONYSAY_FULL_WIDTH" = 'n' ] || [ "$PONYSAY_FULL_WIDTH" = '0' ]; then + cat + else + ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null || + ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || + cat + fi } function htrunc { - head --lines=$(( $(stty size <&2 | cut -d ' ' -f 1) - 2 )) + if [ "$PONYSAY_SHELL_LINES" = "" ]; then + PONYSAY_SHELL_LINES=2 + fi + head --lines=$(( $(stty size <&2 | cut -d ' ' -f 1) - $PONYSAY_SHELL_LINES )) } if [ "$TERM" = "linux" ]; then -- cgit From 348c0084a892b6967249e26a40f529301f7172e4 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 5 Jul 2012 09:17:43 +0200 Subject: environment variable PONYSAY_TRUNCATE_HEIGHT --- manpage.1 | 3 +++ ponysay | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manpage.1 b/manpage.1 index 57c4222..ec35533 100644 --- a/manpage.1 +++ b/manpage.1 @@ -70,6 +70,9 @@ than the screen. .B PONYSAY_FULL_WIDTH You can export \fBPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you do not want the output to be truncated on the width to fit the terminal. +.B PONYSAY_TRUNCATE_HEIGHT +Export \fBPONYSAY_TRUNCATE_HEIGHT\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP, if you +want to truncate the output on the height even if you are not running \fIponysay\fP under TTY. .SH BUG Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH SEE ALSO diff --git a/ponysay b/ponysay index 9b5b2af..46c288e 100755 --- a/ponysay +++ b/ponysay @@ -81,7 +81,7 @@ say() { head --lines=$(( $(stty size <&2 | cut -d ' ' -f 1) - $PONYSAY_SHELL_LINES )) } - if [ "$TERM" = "linux" ]; then + if [ "$TERM" = "linux" ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'yes' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'y' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = '1' ]; then if [ "$PONYSAY_BOTTOM" = 'yes' ] || [ "$PONYSAY_BOTTOM" = 'y' ] || [ "$PONYSAY_BOTTOM" = '1' ]; then exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | tac | htrunc | tac else -- cgit From 2cc95ba021f4f295d974f51f5a4349aa370f3317 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 5 Jul 2012 09:24:29 +0200 Subject: using stty and cut (coreutils) instead of tput (ncurses) for getting terminal width --- ponysay | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ponysay b/ponysay index 46c288e..5958387 100755 --- a/ponysay +++ b/ponysay @@ -66,9 +66,10 @@ say() { if [ "$PONYSAY_FULL_WIDTH" = 'no' ] || [ "$PONYSAY_FULL_WIDTH" = 'n' ] || [ "$PONYSAY_FULL_WIDTH" = '0' ]; then cat else - ponysaytruncater `tput cols || echo 0` 2>/dev/null || - ${HOME}/.local/bin/ponysaytruncater `tput cols || echo 0` 2>/dev/null || - ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || + WIDTH=$((stty size <&2 || echo 0 0) | cut -d ' ' -f 2) + ponysaytruncater $WIDTH 2>/dev/null || + ${HOME}/.local/bin/ponysaytruncater $WIDTH 2>/dev/null || + ./ponysaytruncater $WIDTH 2>/dev/null || cat fi } -- cgit From 615f84ca5c6804a1d599433601480874c3877fd7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 5 Jul 2012 11:00:09 +0200 Subject: derp --- manpage.1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/manpage.1 b/manpage.1 index ec35533..e35603f 100644 --- a/manpage.1 +++ b/manpage.1 @@ -61,17 +61,20 @@ The screen column where the message should be wrapped .B PONYSAY_BOTTOM Under TTY (Linux VT), if the output is larger the the screen's height, only the beginning is printed, leaving two blank lines. If you want the buttom to be printed rather the the beginning -you can export \fBPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. +you can export \fIPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. +.TP .B PONYSAY_SHELL_LINES Under TTY (Linux VT), if the output is larger the the screen's height, two lines are left blank. -If you want moer, or less, blank lines you can export \fBPONYSAY_SHELL_LINES\fP with the value +If you want more, or less, blank lines you can export \fIPONYSAY_SHELL_LINES\fP with the value of how many blank lines you want. Naturally this takes effect if the output is not actually larger than the screen. +.TP .B PONYSAY_FULL_WIDTH -You can export \fBPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you +You can export \fIPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you do not want the output to be truncated on the width to fit the terminal. +.TP .B PONYSAY_TRUNCATE_HEIGHT -Export \fBPONYSAY_TRUNCATE_HEIGHT\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP, if you +Export \fIPONYSAY_TRUNCATE_HEIGHT\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP, if you want to truncate the output on the height even if you are not running \fIponysay\fP under TTY. .SH BUG Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. -- cgit From 9c31590a714670fcc156fef0489fb31d4f140565 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 5 Jul 2012 19:49:15 -0400 Subject: Added twilighrage flim flam discord and raritydrama (in they couch) --- ponies/discord.pony | 54 ++++++++++++++++++++++++++++++++++++++++++++ ponies/flam.pony | 31 +++++++++++++++++++++++++ ponies/flim.pony | 30 +++++++++++++++++++++++++ ponies/raritydrama.pony | 40 +++++++++++++++++++++++++++++++++ ponies/twilightrage.pony | 37 ++++++++++++++++++++++++++++++ ttyponies/discord.pony | 55 +++++++++++++++++++++++++++++++++++++++++++++ ttyponies/flam.pony | 32 ++++++++++++++++++++++++++ ttyponies/flim.pony | 31 +++++++++++++++++++++++++ ttyponies/raritydrama.pony | 41 +++++++++++++++++++++++++++++++++ ttyponies/twilightrage.pony | 38 +++++++++++++++++++++++++++++++ 10 files changed, 389 insertions(+) create mode 100644 ponies/discord.pony create mode 100644 ponies/flam.pony create mode 100644 ponies/flim.pony create mode 100644 ponies/raritydrama.pony create mode 100644 ponies/twilightrage.pony create mode 100644 ttyponies/discord.pony create mode 100644 ttyponies/flam.pony create mode 100644 ttyponies/flim.pony create mode 100644 ttyponies/raritydrama.pony create mode 100644 ttyponies/twilightrage.pony diff --git a/ponies/discord.pony b/ponies/discord.pony new file mode 100644 index 0000000..799594d --- /dev/null +++ b/ponies/discord.pony @@ -0,0 +1,54 @@ +$the_cow =< Date: Thu, 5 Jul 2012 23:12:29 -0400 Subject: Added changeling --- ponies/changeling.pony | 28 ++++++++++++++++++++++++++++ ttyponies/changeling.pony | 29 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 ponies/changeling.pony create mode 100644 ttyponies/changeling.pony diff --git a/ponies/changeling.pony b/ponies/changeling.pony new file mode 100644 index 0000000..fa4b381 --- /dev/null +++ b/ponies/changeling.pony @@ -0,0 +1,28 @@ +$the_cow =< Date: Sun, 8 Jul 2012 00:06:55 -0400 Subject: Added bonbonstand and somlink rose to roseluck --- ponies/bonbonstand.pony | 48 +++++++++++++++++++++++++++++++++++++++++++++ ponies/roseluck.pony | 1 + ttyponies/bonbonstand.pony | 49 ++++++++++++++++++++++++++++++++++++++++++++++ ttyponies/roseluck.pony | 1 + 4 files changed, 99 insertions(+) create mode 100644 ponies/bonbonstand.pony create mode 120000 ponies/roseluck.pony create mode 100644 ttyponies/bonbonstand.pony create mode 120000 ttyponies/roseluck.pony diff --git a/ponies/bonbonstand.pony b/ponies/bonbonstand.pony new file mode 100644 index 0000000..36b43e6 --- /dev/null +++ b/ponies/bonbonstand.pony @@ -0,0 +1,48 @@ +$the_cow =< Date: Sun, 8 Jul 2012 00:11:48 -0400 Subject: Added fleur de lis --- ponies/fleurdelis.pony | 57 ++++++++++++++++++++++++++++++++++++++++++++++ ttyponies/fleurdelis.pony | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 ponies/fleurdelis.pony create mode 100644 ttyponies/fleurdelis.pony diff --git a/ponies/fleurdelis.pony b/ponies/fleurdelis.pony new file mode 100644 index 0000000..be77794 --- /dev/null +++ b/ponies/fleurdelis.pony @@ -0,0 +1,57 @@ +$the_cow =< Date: Sun, 8 Jul 2012 02:28:25 -0400 Subject: not perfect but fleurdelis yoin to the ponysayç MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ponies/bonbonstand.pony | 69 ++++++++++++++------------------------ ponies/fleurdelis.pony | 82 ++++++++++++++++------------------------------ ttyponies/bonbonstand.pony | 69 ++++++++++++++------------------------ ttyponies/fleurdelis.pony | 82 ++++++++++++++++------------------------------ 4 files changed, 104 insertions(+), 198 deletions(-) diff --git a/ponies/bonbonstand.pony b/ponies/bonbonstand.pony index 36b43e6..5236eda 100644 --- a/ponies/bonbonstand.pony +++ b/ponies/bonbonstand.pony @@ -1,48 +1,27 @@ $the_cow =< Date: Sun, 8 Jul 2012 02:41:15 -0400 Subject: added pinkie cañon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ponies/pinkiecannon.pony | 32 ++++++++++++++++++++++++++++++++ ttyponies/pinkiecannon.pony | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 ponies/pinkiecannon.pony create mode 100644 ttyponies/pinkiecannon.pony diff --git a/ponies/pinkiecannon.pony b/ponies/pinkiecannon.pony new file mode 100644 index 0000000..4121fc9 --- /dev/null +++ b/ponies/pinkiecannon.pony @@ -0,0 +1,32 @@ +$the_cow =< Date: Sun, 8 Jul 2012 21:51:02 -0400 Subject: added Lyra correctly siting --- ponies/lyrasit.pony | 30 ++++++++++++++++++++++++++++++ ttyponies/lyrasit.pony | 31 +++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 ponies/lyrasit.pony create mode 100644 ttyponies/lyrasit.pony diff --git a/ponies/lyrasit.pony b/ponies/lyrasit.pony new file mode 100644 index 0000000..83902b4 --- /dev/null +++ b/ponies/lyrasit.pony @@ -0,0 +1,30 @@ +$the_cow =< Date: Tue, 10 Jul 2012 22:34:44 -0400 Subject: Added Queen Chrysalis --- ponies/chrysalis.pony | 38 ++++++++++++++++++++++++++++++++++++++ ttyponies/chrysalis.pony | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 ponies/chrysalis.pony create mode 100644 ttyponies/chrysalis.pony diff --git a/ponies/chrysalis.pony b/ponies/chrysalis.pony new file mode 100644 index 0000000..11ed6a4 --- /dev/null +++ b/ponies/chrysalis.pony @@ -0,0 +1,38 @@ +$the_cow =< Date: Tue, 10 Jul 2012 23:08:40 -0400 Subject: Added manpage in Spanish --- Makefile | 7 +++- manpage.es.1 | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+), 1 deletion(-) create mode 100644 manpage.es.1 diff --git a/Makefile b/Makefile index e9c3279..2fff65f 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,10 @@ install: all install "manpage.1" "$(DESTDIR)/usr/share/man/man1/ponysay.1" ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/man1/ponythink.1" + mkdir -p "$(DESTDIR)/usr/share/man/es/man1" + install "manpage.es.1" "$(DESTDIR)/usr/share/man/es/man1/ponysay.1" + ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/es/man1/ponythink.1" + uninstall: rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" rm -fr "$(DESTDIR)/usr/share/ponysay/ttyponies" @@ -39,6 +43,7 @@ uninstall: unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" unlink "$(DESTDIR)/usr/share/man/man1/ponysay.1" unlink "$(DESTDIR)/usr/share/man/man1/ponythink.1" - + unlink "$(DESTDIR)/usr/share/man/es/man1/ponysay.1" + unlink "$(DESTDIR)/usr/share/man/es/man1/ponysay.1" clean: rm -r "ponysaytruncater" diff --git a/manpage.es.1 b/manpage.es.1 new file mode 100644 index 0000000..f23394d --- /dev/null +++ b/manpage.es.1 @@ -0,0 +1,111 @@ +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PONYSAY SECTION "July 4, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ponysay \- un remplazo para cowsay usando ponis +.SH SYNOPSIS +.B ponysay +.RI [ options ] +.RI [ message ] +.br +.B ponythink +.RI [ options ] +.RI [ message ] +.br +.SH DESCRIPTION +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. +Iste es en realidad un Remplazo a \fIcowsay\fP, aunque sigue usando este ultimo para motrar el mensaje. +Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, +El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. +.PP +Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, un archivo +o ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de caracteres.) +.PP +\fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. +.SH OPTIONS +Resumen de opciones incluida acontinuación. +.TP +.B \-h +Muestra la ayuda, un resumen de las opciones. +.TP +.B \-v +Muestra las opciones. +.TP +.B \-l +Lista los ponis disponibles. +.TP +.B \-f \fIname\fP +selecciona un poni específico (ambos un archivo o el nombre directamente.) +.TP +.B \-W \fIcolumn\fP +El numero de columnas en el que será impreso el mensaje +.SH ENVIRONMENT +.TP +.B PONYSAY_BOTTOM +Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo el inicio de esta +es impreso, dejando solo dos líneas blancas. si desea que apesar de todo sea impreso el fondo del inicio +puede exportar \fIPONYSAY_BOTTOM\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP. +.TP +.B PONYSAY_SHELL_LINES +Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo dos líneas blancas serán impresas. +si desea más o menos lineas blancas, puede exportar \fIPONYSAY_SHELL_LINES\fP con el valor +de cuantas líneas blancas desea. Naturalmente esto solo tomará efecto si la salida no es mas larga que +la pantalla. +.TP +.B PONYSAY_FULL_WIDTH +Puede exportar \fIPONYSAY_FULL_WIDTH\fP con el valor \fIno\fP, \fIn\fP o \fI0\fP, si usted +no desea que la salida sea truncada para que calce en la terminal. +.TP +.B PONYSAY_TRUNCATE_HEIGHT +Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si +desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. +.SH BUG +Bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.SH SEE ALSO +.BR cowsay (1), +.BR fortune (1). +.br +.SH AUTHOR +ponysay fue escrito por Erkin Batu Altunbaş +con la ayuda de Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens y otros. +.\" vea el archivo CREDITS para la lista completa +.PP +Este manuyal originalmente fue escrito por Louis Taylor +para el proyecto Debian (y puede ser usado por otros), y editado por +Mattias Andrée . +La actual traducción al español fue escrita por pablo Lezaeta . +.br +.SH COPYRIGHT +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +.br +Version 2, December 2004 +.PP +Copyright (C) 2012 Erkin Batu Altunbaş +.PP +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. +.PP +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +.br +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +.PP +0. You just DO WHAT THE FUCK YOU WANT TO. -- cgit From 2f1566b74f83ea33d156cce3cee60f137db58489 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Wed, 11 Jul 2012 18:36:18 +0300 Subject: I tried to make it a bit more portable. I hope I didn't screw something up. --- ponysay | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ponysay b/ponysay index e50b0b1..79e8339 100755 --- a/ponysay +++ b/ponysay @@ -1,13 +1,13 @@ #!/usr/bin/env bash -version=0.9 -SYSTEMPONIES=/usr/share/ponysay/ponies +version=0.10 +SYSTEMPONIES="/usr/share/ponysay/ponies" HOMEPONIES="${HOME}/.ponysay/ponies" pony="*" -wrap= +wrap="" if [ "$TERM" = "linux" ]; then - SYSTEMPONIES=/usr/share/ponysay/ttyponies + SYSTEMPONIES="/usr/share/ponysay/ttyponies" HOMEPONIES="${HOME}/.ponysay/ttyponies" fi @@ -66,7 +66,7 @@ say() { if [ "$PONYSAY_FULL_WIDTH" = 'no' ] || [ "$PONYSAY_FULL_WIDTH" = 'n' ] || [ "$PONYSAY_FULL_WIDTH" = '0' ]; then cat else - WIDTH=$((stty size <&2 || echo 0 0) | cut -d ' ' -f 2) + WIDTH=`(stty size <&2 || echo 0 0) | cut -d ' ' -f 2` ponysaytruncater $WIDTH 2>/dev/null || ${HOME}/.local/bin/ponysaytruncater $WIDTH 2>/dev/null || ./ponysaytruncater $WIDTH 2>/dev/null || @@ -79,7 +79,7 @@ say() { if [ "$PONYSAY_SHELL_LINES" = "" ]; then PONYSAY_SHELL_LINES=2 fi - head --lines=$(( $(stty size <&2 | cut -d ' ' -f 1) - $PONYSAY_SHELL_LINES )) + head --lines=`( \`stty size <&2 | cut -d ' ' -f 1\` - $PONYSAY_SHELL_LINES )` } if [ "$TERM" = "linux" ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'yes' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'y' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = '1' ]; then @@ -106,7 +106,7 @@ do done shift $((OPTIND - 1)) -if ! hash $cmd &>/dev/null; then +hash $cmd &>/dev/null; if [ $? -ne 0 ]; then cat >&2 < Date: Wed, 11 Jul 2012 18:42:49 +0300 Subject: See comment on last edit. --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ponysay b/ponysay index 79e8339..bfe74b7 100755 --- a/ponysay +++ b/ponysay @@ -79,7 +79,7 @@ say() { if [ "$PONYSAY_SHELL_LINES" = "" ]; then PONYSAY_SHELL_LINES=2 fi - head --lines=`( \`stty size <&2 | cut -d ' ' -f 1\` - $PONYSAY_SHELL_LINES )` + head --lines=$(( `stty size <&2 | cut -d ' ' -f 1` - $PONYSAY_SHELL_LINES )) } if [ "$TERM" = "linux" ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'yes' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'y' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = '1' ]; then -- cgit From 9b2e85c10d3dc7ad1142b95e49aeb4d8e6757b02 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Wed, 11 Jul 2012 18:49:45 +0300 Subject: A binary executable isn't a directory. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e9c3279..502f1b4 100644 --- a/Makefile +++ b/Makefile @@ -41,4 +41,4 @@ uninstall: unlink "$(DESTDIR)/usr/share/man/man1/ponythink.1" clean: - rm -r "ponysaytruncater" + rm "ponysaytruncater" -- cgit From cecfbf75e8b1cc930de4ac347496be9ebce88a84 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Thu, 12 Jul 2012 16:46:17 +0200 Subject: A tiny bit of tweaking in documents.See issue 22 to discuss. --- manpage.1 | 109 -------------------------------------------------------------- manpage.6 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 96 insertions(+), 109 deletions(-) delete mode 100644 manpage.1 create mode 100644 manpage.6 diff --git a/manpage.1 b/manpage.1 deleted file mode 100644 index e35603f..0000000 --- a/manpage.1 +++ /dev/null @@ -1,109 +0,0 @@ -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH PONYSAY SECTION "July 4, 2012" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -ponysay \- A cowsay wrapper with ponies -.SH SYNOPSIS -.B ponysay -.RI [ options ] -.RI [ message ] -.br -.B ponythink -.RI [ options ] -.RI [ message ] -.br -.SH DESCRIPTION -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBponysay\fP displays an image of a pony saying some text provided by the user in a terminal. -It is a wrapper for \fIcowsay\fP. If \fImessage\fP is not provided, it accepts standard input, -word-wraps the message given at about 40 columns, and prints the pony saying the given message on standard output. -.PP -If no arguments are provided, the program only accepts standard input piped from another program, a file or -either here documents or here strings (see man bash(1) for details on here document/string.) -.PP -\fBponythink\fP is to \fIponysay\fP as \fIcowthink\fP is to \fIcowsay\fP. -.SH OPTIONS -A summary of options is included below. -.TP -.B \-h -Show summary of options. -.TP -.B \-v -Show version of program. -.TP -.B \-l -List pony files. -.TP -.B \-f \fIname\fP -Select a pony (either a file name or a pony name.) -.TP -.B \-W \fIcolumn\fP -The screen column where the message should be wrapped -.SH ENVIRONMENT -.TP -.B PONYSAY_BOTTOM -Under TTY (Linux VT), if the output is larger the the screen's height, only the beginning is -printed, leaving two blank lines. If you want the buttom to be printed rather the the beginning -you can export \fIPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. -.TP -.B PONYSAY_SHELL_LINES -Under TTY (Linux VT), if the output is larger the the screen's height, two lines are left blank. -If you want more, or less, blank lines you can export \fIPONYSAY_SHELL_LINES\fP with the value -of how many blank lines you want. Naturally this takes effect if the output is not actually larger -than the screen. -.TP -.B PONYSAY_FULL_WIDTH -You can export \fIPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you -do not want the output to be truncated on the width to fit the terminal. -.TP -.B PONYSAY_TRUNCATE_HEIGHT -Export \fIPONYSAY_TRUNCATE_HEIGHT\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP, if you -want to truncate the output on the height even if you are not running \fIponysay\fP under TTY. -.SH BUG -Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. -.SH SEE ALSO -.BR cowsay (1), -.BR fortune (1). -.br -.SH AUTHOR -ponysay was written by Erkin Batu Altunbaş -with contributions from Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens &a. -.\" See file CREDITS for full list -.PP -This manual page was written by Louis Taylor -for the Debian project (and may be used by others), and edited -by Mattias Andrée . -.br -.SH COPYRIGHT -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -.br -Version 2, December 2004 -.PP -Copyright (C) 2012 Erkin Batu Altunbaş -.PP -Everyone is permitted to copy and distribute verbatim or modified -copies of this license document, and changing it is allowed as long -as the name is changed. -.PP -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -.br -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION -.PP -0. You just DO WHAT THE FUCK YOU WANT TO. diff --git a/manpage.6 b/manpage.6 new file mode 100644 index 0000000..4b76a69 --- /dev/null +++ b/manpage.6 @@ -0,0 +1,96 @@ +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PONYSAY 6 "July 12, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ponysay \- A cowsay wrapper with ponies +.SH SYNOPSIS +.B ponysay +.RI [ options ] +.RI [ message ] +.br +.B ponythink +.RI [ options ] +.RI [ message ] +.br +.SH DESCRIPTION +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBponysay\fP displays an image of a pony saying some text provided by the user in a terminal. +It is a wrapper for \fIcowsay\fP. If \fImessage\fP is not provided, it accepts standard input, +word-wraps the message given at about 40 columns, and prints the pony saying the given message on standard output. +.PP +If no arguments are provided, the program only accepts standard input piped from another program, a file or +either here documents or here strings (see man bash(1) for details on here document/string.) +.PP +\fBponythink\fP is to \fIponysay\fP as \fIcowthink\fP is to \fIcowsay\fP. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-h +Show summary of options. +.TP +.B \-v +Show version of program. +.TP +.B \-l +List pony files. +.TP +.B \-f \fIname\fP +Select a pony (either a file name or a pony name.) +.TP +.B \-W \fIcolumn\fP +The screen column where the message should be wrapped +.SH ENVIRONMENT +.TP +.B PONYSAY_BOTTOM +Under TTY (Linux VT), if the output is larger the the screen's height, only the beginning is +printed, leaving two blank lines. If you want the buttom to be printed rather the the beginning +you can export \fIPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. +.TP +.B PONYSAY_SHELL_LINES +Under TTY (Linux VT), if the output is larger the the screen's height, two lines are left blank. +If you want more, or less, blank lines you can export \fIPONYSAY_SHELL_LINES\fP with the value +of how many blank lines you want. Naturally this takes effect if the output is not actually larger +than the screen. +.TP +.B PONYSAY_FULL_WIDTH +You can export \fIPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you +do not want the output to be truncated on the width to fit the terminal. +.TP +.B PONYSAY_TRUNCATE_HEIGHT +Export \fIPONYSAY_TRUNCATE_HEIGHT\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP, if you +want to truncate the output on the height even if you are not running \fIponysay\fP under TTY. +.SH BUG +Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.SH SEE ALSO +.BR cowsay (1), +.BR fortune (1). +.br +.SH AUTHOR +ponysay was written by Erkin Batu Altunbaş +with major contributions from Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens et al. +.\" See file CREDITS for full list. +.PP +This manual page was written by Louis Taylor +for the Debian project (and may be used by others), and edited +by Mattias Andrée . +.br +.PP +This program is licensed under WTFPL. +.\" See file COPYING to see the license. -- cgit From c8c0aa155d6a90d3be2efc88a0224d8496acb0f0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 12 Jul 2012 16:58:05 +0300 Subject: Update master --- manpage.6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manpage.6 b/manpage.6 index 4b76a69..e25a560 100644 --- a/manpage.6 +++ b/manpage.6 @@ -80,7 +80,7 @@ want to truncate the output on the height even if you are not running \fIponysay Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH SEE ALSO .BR cowsay (1), -.BR fortune (1). +.BR fortune (6). .br .SH AUTHOR ponysay was written by Erkin Batu Altunbaş -- cgit From fc3d2d660a95244f11fa7bbb9a004a13e7f3cda0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 12 Jul 2012 16:59:18 +0300 Subject: The manpage is currently in section 6, not section 1 (issue #22 is open) --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 502f1b4..ca6a5e1 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,8 @@ install: all install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" mkdir -p "$(DESTDIR)/usr/share/man/man1" - install "manpage.1" "$(DESTDIR)/usr/share/man/man1/ponysay.1" - ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/man1/ponythink.1" + install "manpage.6" "$(DESTDIR)/usr/share/man/man1/ponysay.6" + ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man1/ponythink.6" uninstall: rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" @@ -37,8 +37,8 @@ uninstall: unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" - unlink "$(DESTDIR)/usr/share/man/man1/ponysay.1" - unlink "$(DESTDIR)/usr/share/man/man1/ponythink.1" + unlink "$(DESTDIR)/usr/share/man/man1/ponysay.6" + unlink "$(DESTDIR)/usr/share/man/man1/ponythink.6" clean: rm "ponysaytruncater" -- cgit From 3347fa84c3dbab2b40ef683df2d7a57d548db2cc Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 12 Jul 2012 16:59:47 +0300 Subject: missed one line --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ca6a5e1..079092e 100644 --- a/Makefile +++ b/Makefile @@ -24,7 +24,7 @@ install: all mkdir -p "$(DESTDIR)/usr/share/licenses/ponysay/" install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" - mkdir -p "$(DESTDIR)/usr/share/man/man1" + mkdir -p "$(DESTDIR)/usr/share/man/man6" install "manpage.6" "$(DESTDIR)/usr/share/man/man1/ponysay.6" ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man1/ponythink.6" -- cgit From 9f4f748cf95407ba9fd4d8a8c347d735fab1416e Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Thu, 12 Jul 2012 17:07:22 +0300 Subject: ponysaytruncater seems to be writeprotected. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 079092e..e5b870f 100644 --- a/Makefile +++ b/Makefile @@ -41,4 +41,4 @@ uninstall: unlink "$(DESTDIR)/usr/share/man/man1/ponythink.6" clean: - rm "ponysaytruncater" + rm -f "ponysaytruncater" -- cgit From dbfb357d7cea1732786c7cd49211910cc84e7e43 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Thu, 12 Jul 2012 19:06:41 +0200 Subject: makefile mistake man1 instead of man6 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e5b870f..eac642f 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,8 @@ install: all install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" mkdir -p "$(DESTDIR)/usr/share/man/man6" - install "manpage.6" "$(DESTDIR)/usr/share/man/man1/ponysay.6" - ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man1/ponythink.6" + install "manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6" + ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man6/ponythink.6" uninstall: rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" @@ -37,8 +37,8 @@ uninstall: unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" - unlink "$(DESTDIR)/usr/share/man/man1/ponysay.6" - unlink "$(DESTDIR)/usr/share/man/man1/ponythink.6" + unlink "$(DESTDIR)/usr/share/man/man6/ponysay.6" + unlink "$(DESTDIR)/usr/share/man/man6/ponythink.6" clean: rm -f "ponysaytruncater" -- cgit From 7cd5fdbc8de6e51ca48585427669b402f6108bf9 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 12 Jul 2012 20:01:22 -0400 Subject: move spanish manpages to man6 --- Makefile | 8 ++--- manpage.es.6 | 111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+), 4 deletions(-) create mode 100644 manpage.es.6 diff --git a/Makefile b/Makefile index 2fff65f..11aa004 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,8 @@ install: all ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/man1/ponythink.1" mkdir -p "$(DESTDIR)/usr/share/man/es/man1" - install "manpage.es.1" "$(DESTDIR)/usr/share/man/es/man1/ponysay.1" - ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/es/man1/ponythink.1" + install "manpage.es.1" "$(DESTDIR)/usr/share/man/es/man1/ponysay.6" + ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/es/man1/ponythink.6" uninstall: rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" @@ -43,7 +43,7 @@ uninstall: unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" unlink "$(DESTDIR)/usr/share/man/man1/ponysay.1" unlink "$(DESTDIR)/usr/share/man/man1/ponythink.1" - unlink "$(DESTDIR)/usr/share/man/es/man1/ponysay.1" - unlink "$(DESTDIR)/usr/share/man/es/man1/ponysay.1" + unlink "$(DESTDIR)/usr/share/man/es/man1/ponysay.6" + unlink "$(DESTDIR)/usr/share/man/es/man1/ponythink.6" clean: rm -r "ponysaytruncater" diff --git a/manpage.es.6 b/manpage.es.6 new file mode 100644 index 0000000..f23394d --- /dev/null +++ b/manpage.es.6 @@ -0,0 +1,111 @@ +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PONYSAY SECTION "July 4, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ponysay \- un remplazo para cowsay usando ponis +.SH SYNOPSIS +.B ponysay +.RI [ options ] +.RI [ message ] +.br +.B ponythink +.RI [ options ] +.RI [ message ] +.br +.SH DESCRIPTION +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. +Iste es en realidad un Remplazo a \fIcowsay\fP, aunque sigue usando este ultimo para motrar el mensaje. +Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, +El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. +.PP +Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, un archivo +o ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de caracteres.) +.PP +\fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. +.SH OPTIONS +Resumen de opciones incluida acontinuación. +.TP +.B \-h +Muestra la ayuda, un resumen de las opciones. +.TP +.B \-v +Muestra las opciones. +.TP +.B \-l +Lista los ponis disponibles. +.TP +.B \-f \fIname\fP +selecciona un poni específico (ambos un archivo o el nombre directamente.) +.TP +.B \-W \fIcolumn\fP +El numero de columnas en el que será impreso el mensaje +.SH ENVIRONMENT +.TP +.B PONYSAY_BOTTOM +Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo el inicio de esta +es impreso, dejando solo dos líneas blancas. si desea que apesar de todo sea impreso el fondo del inicio +puede exportar \fIPONYSAY_BOTTOM\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP. +.TP +.B PONYSAY_SHELL_LINES +Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo dos líneas blancas serán impresas. +si desea más o menos lineas blancas, puede exportar \fIPONYSAY_SHELL_LINES\fP con el valor +de cuantas líneas blancas desea. Naturalmente esto solo tomará efecto si la salida no es mas larga que +la pantalla. +.TP +.B PONYSAY_FULL_WIDTH +Puede exportar \fIPONYSAY_FULL_WIDTH\fP con el valor \fIno\fP, \fIn\fP o \fI0\fP, si usted +no desea que la salida sea truncada para que calce en la terminal. +.TP +.B PONYSAY_TRUNCATE_HEIGHT +Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si +desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. +.SH BUG +Bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.SH SEE ALSO +.BR cowsay (1), +.BR fortune (1). +.br +.SH AUTHOR +ponysay fue escrito por Erkin Batu Altunbaş +con la ayuda de Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens y otros. +.\" vea el archivo CREDITS para la lista completa +.PP +Este manuyal originalmente fue escrito por Louis Taylor +para el proyecto Debian (y puede ser usado por otros), y editado por +Mattias Andrée . +La actual traducción al español fue escrita por pablo Lezaeta . +.br +.SH COPYRIGHT +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +.br +Version 2, December 2004 +.PP +Copyright (C) 2012 Erkin Batu Altunbaş +.PP +Everyone is permitted to copy and distribute verbatim or modified +copies of this license document, and changing it is allowed as long +as the name is changed. +.PP +DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +.br +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +.PP +0. You just DO WHAT THE FUCK YOU WANT TO. -- cgit From 0277cc3e6423a8493200d4d609fa81a1ffd0ae80 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 12 Jul 2012 20:01:46 -0400 Subject: move spanish manpages to man6 --- manpage.es.1 | 111 ----------------------------------------------------------- 1 file changed, 111 deletions(-) delete mode 100644 manpage.es.1 diff --git a/manpage.es.1 b/manpage.es.1 deleted file mode 100644 index f23394d..0000000 --- a/manpage.es.1 +++ /dev/null @@ -1,111 +0,0 @@ -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH PONYSAY SECTION "July 4, 2012" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -ponysay \- un remplazo para cowsay usando ponis -.SH SYNOPSIS -.B ponysay -.RI [ options ] -.RI [ message ] -.br -.B ponythink -.RI [ options ] -.RI [ message ] -.br -.SH DESCRIPTION -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. -Iste es en realidad un Remplazo a \fIcowsay\fP, aunque sigue usando este ultimo para motrar el mensaje. -Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, -El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. -.PP -Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, un archivo -o ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de caracteres.) -.PP -\fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. -.SH OPTIONS -Resumen de opciones incluida acontinuación. -.TP -.B \-h -Muestra la ayuda, un resumen de las opciones. -.TP -.B \-v -Muestra las opciones. -.TP -.B \-l -Lista los ponis disponibles. -.TP -.B \-f \fIname\fP -selecciona un poni específico (ambos un archivo o el nombre directamente.) -.TP -.B \-W \fIcolumn\fP -El numero de columnas en el que será impreso el mensaje -.SH ENVIRONMENT -.TP -.B PONYSAY_BOTTOM -Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo el inicio de esta -es impreso, dejando solo dos líneas blancas. si desea que apesar de todo sea impreso el fondo del inicio -puede exportar \fIPONYSAY_BOTTOM\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP. -.TP -.B PONYSAY_SHELL_LINES -Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo dos líneas blancas serán impresas. -si desea más o menos lineas blancas, puede exportar \fIPONYSAY_SHELL_LINES\fP con el valor -de cuantas líneas blancas desea. Naturalmente esto solo tomará efecto si la salida no es mas larga que -la pantalla. -.TP -.B PONYSAY_FULL_WIDTH -Puede exportar \fIPONYSAY_FULL_WIDTH\fP con el valor \fIno\fP, \fIn\fP o \fI0\fP, si usted -no desea que la salida sea truncada para que calce en la terminal. -.TP -.B PONYSAY_TRUNCATE_HEIGHT -Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si -desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. -.SH BUG -Bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. -.SH SEE ALSO -.BR cowsay (1), -.BR fortune (1). -.br -.SH AUTHOR -ponysay fue escrito por Erkin Batu Altunbaş -con la ayuda de Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens y otros. -.\" vea el archivo CREDITS para la lista completa -.PP -Este manuyal originalmente fue escrito por Louis Taylor -para el proyecto Debian (y puede ser usado por otros), y editado por -Mattias Andrée . -La actual traducción al español fue escrita por pablo Lezaeta . -.br -.SH COPYRIGHT -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -.br -Version 2, December 2004 -.PP -Copyright (C) 2012 Erkin Batu Altunbaş -.PP -Everyone is permitted to copy and distribute verbatim or modified -copies of this license document, and changing it is allowed as long -as the name is changed. -.PP -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -.br -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION -.PP -0. You just DO WHAT THE FUCK YOU WANT TO. -- cgit From 0d7cbc70d75169e5debbe5c67b4eb8773835dd80 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Fri, 13 Jul 2012 02:18:53 +0200 Subject: tiny fix in help --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ponysay b/ponysay index bfe74b7..7ec7943 100755 --- a/ponysay +++ b/ponysay @@ -43,7 +43,7 @@ Options: -f[name] Select a pony (either a file name or a pony name.) -W[column] The screen column where the message should be wrapped. -See man ponysay(1) for more information. +See man ponysay(6) for more information. EOF } -- cgit From bc170674a8f4323aff8d97fc781230eea4efbdb9 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 12 Jul 2012 21:20:21 -0400 Subject: Reworked twilightrage.pony --- ponies/twilightrage.pony | 68 ++++++++++++++++++++++----------------------- ttyponies/twilightrage.pony | 68 ++++++++++++++++++++++----------------------- 2 files changed, 68 insertions(+), 68 deletions(-) diff --git a/ponies/twilightrage.pony b/ponies/twilightrage.pony index 1f5c91b..624bcb7 100644 --- a/ponies/twilightrage.pony +++ b/ponies/twilightrage.pony @@ -1,37 +1,37 @@ $the_cow =< Date: Thu, 12 Jul 2012 21:22:35 -0400 Subject: Fanon vinyl(scratch) to canon djpon-3 --- ponies/djpon-3.pony | 1 + ttyponies/djpon-3.pony | 1 + 2 files changed, 2 insertions(+) create mode 120000 ponies/djpon-3.pony create mode 120000 ttyponies/djpon-3.pony diff --git a/ponies/djpon-3.pony b/ponies/djpon-3.pony new file mode 120000 index 0000000..3845885 --- /dev/null +++ b/ponies/djpon-3.pony @@ -0,0 +1 @@ +./vinyl.pony \ No newline at end of file diff --git a/ttyponies/djpon-3.pony b/ttyponies/djpon-3.pony new file mode 120000 index 0000000..3845885 --- /dev/null +++ b/ttyponies/djpon-3.pony @@ -0,0 +1 @@ +./vinyl.pony \ No newline at end of file -- cgit From a0f70364d234eb04d1b5b6164b1bfd75eec0f89f Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 12 Jul 2012 22:12:23 -0400 Subject: added philomena in good state (like a real phoenix) --- ponies/philomenaphoenix.pony | 31 +++++++++++++++++++++++++++++++ ttyponies/philomenaphoenix.pony | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 ponies/philomenaphoenix.pony create mode 100644 ttyponies/philomenaphoenix.pony diff --git a/ponies/philomenaphoenix.pony b/ponies/philomenaphoenix.pony new file mode 100644 index 0000000..13cc72a --- /dev/null +++ b/ponies/philomenaphoenix.pony @@ -0,0 +1,31 @@ +$the_cow =< Date: Thu, 12 Jul 2012 22:50:34 -0400 Subject: Fix mistaken in man6 for man1 in manpage spanish --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 11aa004..737b82e 100644 --- a/Makefile +++ b/Makefile @@ -28,9 +28,9 @@ install: all install "manpage.1" "$(DESTDIR)/usr/share/man/man1/ponysay.1" ln -sf "ponysay.1" "$(DESTDIR)/usr/share/man/man1/ponythink.1" - mkdir -p "$(DESTDIR)/usr/share/man/es/man1" - install "manpage.es.1" "$(DESTDIR)/usr/share/man/es/man1/ponysay.6" - ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/es/man1/ponythink.6" + mkdir -p "$(DESTDIR)/usr/share/man/es/man6" + install "manpage.es.1" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" + ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6" uninstall: rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" @@ -43,7 +43,7 @@ uninstall: unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" unlink "$(DESTDIR)/usr/share/man/man1/ponysay.1" unlink "$(DESTDIR)/usr/share/man/man1/ponythink.1" - unlink "$(DESTDIR)/usr/share/man/es/man1/ponysay.6" - unlink "$(DESTDIR)/usr/share/man/es/man1/ponythink.6" + unlink "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" + unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6" clean: rm -r "ponysaytruncater" -- cgit From 596e825ecde747b4d6d000fa932c3f521a003c26 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 12 Jul 2012 23:10:13 -0400 Subject: Traducida y corregida gran cantidad de errores, traducida la licencia al español MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manpage.es.6 | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/manpage.es.6 b/manpage.es.6 index f23394d..f706b8f 100644 --- a/manpage.es.6 +++ b/manpage.es.6 @@ -2,7 +2,7 @@ .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) -.TH PONYSAY SECTION "July 4, 2012" +.TH SECCIÓN DE PONYSAY "Julio 12, 2012" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -15,18 +15,18 @@ .\" .br insert line break .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) -.SH NAME +.SH NOMBRE ponysay \- un remplazo para cowsay usando ponis -.SH SYNOPSIS +.SH SINOPSIS .B ponysay -.RI [ options ] -.RI [ message ] +.RI [ opciones ] +.RI [ mensaje ] .br .B ponythink -.RI [ options ] -.RI [ message ] +.RI [ opciones ] +.RI [ mensaje ] .br -.SH DESCRIPTION +.SH DESCRIPCIÓN .PP .\" TeX users may be more comfortable with the \fB\fP and .\" \fI\fP escape sequences to invode bold face and italics, @@ -40,22 +40,22 @@ Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándare o ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de caracteres.) .PP \fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. -.SH OPTIONS -Resumen de opciones incluida acontinuación. +.SH OPCIONES +El resumen de las opciones incluidas acontinuación. .TP .B \-h Muestra la ayuda, un resumen de las opciones. .TP .B \-v -Muestra las opciones. +Muestra la versión del programa. .TP .B \-l Lista los ponis disponibles. .TP -.B \-f \fIname\fP +.B \-f \fInombre\fP selecciona un poni específico (ambos un archivo o el nombre directamente.) .TP -.B \-W \fIcolumn\fP +.B \-W \fIcolumna\fP El numero de columnas en el que será impreso el mensaje .SH ENVIRONMENT .TP @@ -77,35 +77,36 @@ no desea que la salida sea truncada para que calce en la terminal. .B PONYSAY_TRUNCATE_HEIGHT Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. -.SH BUG -Bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. -.SH SEE ALSO +.SH BUGs +Los bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.SH VEA TAMBIÉN .BR cowsay (1), .BR fortune (1). .br -.SH AUTHOR +.SH AUTOR ponysay fue escrito por Erkin Batu Altunbaş con la ayuda de Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens y otros. .\" vea el archivo CREDITS para la lista completa .PP -Este manuyal originalmente fue escrito por Louis Taylor +Este manual originalmente fue escrito por Louis Taylor para el proyecto Debian (y puede ser usado por otros), y editado por Mattias Andrée . -La actual traducción al español fue escrita por pablo Lezaeta . +La actual traducción al español fue escrita por Pablo Lezaeta . .br .SH COPYRIGHT -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +HAGA LA M****A QUE QUIERA A LICENCIA PÚBLICA .br -Version 2, December 2004 +Versión 2, Diciember 2004 .PP Copyright (C) 2012 Erkin Batu Altunbaş .PP -Everyone is permitted to copy and distribute verbatim or modified -copies of this license document, and changing it is allowed as long -as the name is changed. +Todo está permitido incluido ña distribución de copias originales como +modificadas de este documento, y su cambio está permitido si el nombre +es modificado. .PP -DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE +HAGA LA M****A QUE QUIERA A LICENCIA PÚBLICA .br -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION +TERMINOS Y CONDICIONES PARA COPIAR, MODIFICAR Y DISTRIBUIR .PP +0. Está permitido LA M****A QUE QUIERA HACER. 0. You just DO WHAT THE FUCK YOU WANT TO. -- cgit From b759a958c796f2d0b56dc76045dd62ebc8509a32 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 12 Jul 2012 23:13:23 -0400 Subject: correjidos errores menores --- manpage.es.6 | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/manpage.es.6 b/manpage.es.6 index f706b8f..38f0d3e 100644 --- a/manpage.es.6 +++ b/manpage.es.6 @@ -34,10 +34,12 @@ ponysay \- un remplazo para cowsay usando ponis \fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. Iste es en realidad un Remplazo a \fIcowsay\fP, aunque sigue usando este ultimo para motrar el mensaje. Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, -El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. +El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en +una salida estándar. .PP -Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, un archivo -o ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de caracteres.) +Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, +un archivo, ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de +caracteres.) .PP \fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. .SH OPCIONES @@ -61,14 +63,14 @@ El numero de columnas en el que será impreso el mensaje .TP .B PONYSAY_BOTTOM Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo el inicio de esta -es impreso, dejando solo dos líneas blancas. si desea que apesar de todo sea impreso el fondo del inicio -puede exportar \fIPONYSAY_BOTTOM\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP. +es impreso, dejando solo dos líneas blancas. si desea que apesar de todo sea impreso el fondo del +inicio puede exportar \fIPONYSAY_BOTTOM\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP. .TP .B PONYSAY_SHELL_LINES -Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo dos líneas blancas serán impresas. -si desea más o menos lineas blancas, puede exportar \fIPONYSAY_SHELL_LINES\fP con el valor -de cuantas líneas blancas desea. Naturalmente esto solo tomará efecto si la salida no es mas larga que -la pantalla. +Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo dos líneas blancas +serán impresas. si desea más o menos lineas blancas, puede exportar \fIPONYSAY_SHELL_LINES\fP con +el valor de cuantas líneas blancas desea. Naturalmente esto solo tomará efecto si la salida no es mas +larga que la pantalla. .TP .B PONYSAY_FULL_WIDTH Puede exportar \fIPONYSAY_FULL_WIDTH\fP con el valor \fIno\fP, \fIn\fP o \fI0\fP, si usted @@ -109,4 +111,3 @@ HAGA LA M****A QUE QUIERA A LICENCIA PÚBLICA TERMINOS Y CONDICIONES PARA COPIAR, MODIFICAR Y DISTRIBUIR .PP 0. Está permitido LA M****A QUE QUIERA HACER. -0. You just DO WHAT THE FUCK YOU WANT TO. -- cgit From 72e57e0242527bdb6e184e5f5cec7ccc71493daa Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Thu, 12 Jul 2012 23:54:38 -0400 Subject: Fix spanish manpage install mistake --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index ceb58b9..8e9a662 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ install: all ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man6/ponythink.6" mkdir -p "$(DESTDIR)/usr/share/man/es/man6" - install "manpage.es.1" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" + install "manpage.es.6" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6" uninstall: @@ -45,7 +45,5 @@ uninstall: unlink "$(DESTDIR)/usr/share/man/man6/ponythink.6" unlink "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6" - ->>>>>>> upstream/master clean: rm -f "ponysaytruncater" -- cgit From c95026ef272e1163160f7577e75d2ba05b30c6d7 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Fri, 13 Jul 2012 00:07:13 -0400 Subject: In synchro for original manpage --- manpage.es.6 | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/manpage.es.6 b/manpage.es.6 index 38f0d3e..66717c7 100644 --- a/manpage.es.6 +++ b/manpage.es.6 @@ -2,7 +2,7 @@ .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) -.TH SECCIÓN DE PONYSAY "Julio 12, 2012" +.TH SECCIÓN DE PONYSAY "Julio 13, 2012" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -32,7 +32,7 @@ ponysay \- un remplazo para cowsay usando ponis .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. -Iste es en realidad un Remplazo a \fIcowsay\fP, aunque sigue usando este ultimo para motrar el mensaje. +Este es en realidad un Remplazo a \fIcowsay\fP, aunque sigue usando este ultimo para motrar el mensaje. Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. @@ -95,19 +95,6 @@ para el proyecto Debian (y puede ser usado por otros), y editado por Mattias Andrée . La actual traducción al español fue escrita por Pablo Lezaeta . .br -.SH COPYRIGHT -HAGA LA M****A QUE QUIERA A LICENCIA PÚBLICA -.br -Versión 2, Diciember 2004 -.PP -Copyright (C) 2012 Erkin Batu Altunbaş -.PP -Todo está permitido incluido ña distribución de copias originales como -modificadas de este documento, y su cambio está permitido si el nombre -es modificado. -.PP -HAGA LA M****A QUE QUIERA A LICENCIA PÚBLICA -.br -TERMINOS Y CONDICIONES PARA COPIAR, MODIFICAR Y DISTRIBUIR .PP -0. Está permitido LA M****A QUE QUIERA HACER. +Este programa está licenciado bajo la WTFPL +.\" Vea el archivo COPYING para ver la licencia completa. -- cgit From fae040f4e247e6b397863955de17e9280169ae6a Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Fri, 13 Jul 2012 00:10:09 -0400 Subject: fix mistranslation --- manpage.es.6 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/manpage.es.6 b/manpage.es.6 index 66717c7..e152221 100644 --- a/manpage.es.6 +++ b/manpage.es.6 @@ -16,7 +16,7 @@ .\" .sp insert n+1 empty lines .\" for manpage-specific macros, see man(7) .SH NOMBRE -ponysay \- un remplazo para cowsay usando ponis +ponysay \- un contenedor para cowsay usando ponis .SH SINOPSIS .B ponysay .RI [ opciones ] @@ -32,10 +32,9 @@ ponysay \- un remplazo para cowsay usando ponis .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. -Este es en realidad un Remplazo a \fIcowsay\fP, aunque sigue usando este ultimo para motrar el mensaje. -Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, -El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en -una salida estándar. +Este es en realidad un contenedor de \fIcowsay\fP, aunque sigue usando este último para motrar el mensaje. +Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, El mensaje debería de tener +alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. .PP Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, un archivo, ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de -- cgit From 35d44f826e9a660130b5c1233ad9eed3018fb055 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Fri, 13 Jul 2012 01:02:43 -0400 Subject: added shiningarmor in guard suit --- ponies/shiningarmorguard.pony | 28 ++++++++++++++++++++++++++++ ttyponies/shiningarmorguard.pony | 29 +++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 ponies/shiningarmorguard.pony create mode 100644 ttyponies/shiningarmorguard.pony diff --git a/ponies/shiningarmorguard.pony b/ponies/shiningarmorguard.pony new file mode 100644 index 0000000..a348ff4 --- /dev/null +++ b/ponies/shiningarmorguard.pony @@ -0,0 +1,28 @@ +$the_cow =< Date: Fri, 13 Jul 2012 12:22:33 +0200 Subject: Moved manpages to separate directory: manuals --- Makefile | 4 +-- manpage.6 | 96 -------------------------------------------------- manpage.es.6 | 99 ---------------------------------------------------- manuals/manpage.6 | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++ manuals/manpage.es.6 | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 197 insertions(+), 197 deletions(-) delete mode 100644 manpage.6 delete mode 100644 manpage.es.6 create mode 100644 manuals/manpage.6 create mode 100644 manuals/manpage.es.6 diff --git a/Makefile b/Makefile index 8e9a662..3fb7dcd 100644 --- a/Makefile +++ b/Makefile @@ -25,11 +25,11 @@ install: all install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" mkdir -p "$(DESTDIR)/usr/share/man/man6" - install "manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6" + install "manuals/manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6" ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man6/ponythink.6" mkdir -p "$(DESTDIR)/usr/share/man/es/man6" - install "manpage.es.6" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" + install "manuals/manpage.es.6" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6" uninstall: diff --git a/manpage.6 b/manpage.6 deleted file mode 100644 index e25a560..0000000 --- a/manpage.6 +++ /dev/null @@ -1,96 +0,0 @@ -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH PONYSAY 6 "July 12, 2012" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NAME -ponysay \- A cowsay wrapper with ponies -.SH SYNOPSIS -.B ponysay -.RI [ options ] -.RI [ message ] -.br -.B ponythink -.RI [ options ] -.RI [ message ] -.br -.SH DESCRIPTION -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBponysay\fP displays an image of a pony saying some text provided by the user in a terminal. -It is a wrapper for \fIcowsay\fP. If \fImessage\fP is not provided, it accepts standard input, -word-wraps the message given at about 40 columns, and prints the pony saying the given message on standard output. -.PP -If no arguments are provided, the program only accepts standard input piped from another program, a file or -either here documents or here strings (see man bash(1) for details on here document/string.) -.PP -\fBponythink\fP is to \fIponysay\fP as \fIcowthink\fP is to \fIcowsay\fP. -.SH OPTIONS -A summary of options is included below. -.TP -.B \-h -Show summary of options. -.TP -.B \-v -Show version of program. -.TP -.B \-l -List pony files. -.TP -.B \-f \fIname\fP -Select a pony (either a file name or a pony name.) -.TP -.B \-W \fIcolumn\fP -The screen column where the message should be wrapped -.SH ENVIRONMENT -.TP -.B PONYSAY_BOTTOM -Under TTY (Linux VT), if the output is larger the the screen's height, only the beginning is -printed, leaving two blank lines. If you want the buttom to be printed rather the the beginning -you can export \fIPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. -.TP -.B PONYSAY_SHELL_LINES -Under TTY (Linux VT), if the output is larger the the screen's height, two lines are left blank. -If you want more, or less, blank lines you can export \fIPONYSAY_SHELL_LINES\fP with the value -of how many blank lines you want. Naturally this takes effect if the output is not actually larger -than the screen. -.TP -.B PONYSAY_FULL_WIDTH -You can export \fIPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you -do not want the output to be truncated on the width to fit the terminal. -.TP -.B PONYSAY_TRUNCATE_HEIGHT -Export \fIPONYSAY_TRUNCATE_HEIGHT\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP, if you -want to truncate the output on the height even if you are not running \fIponysay\fP under TTY. -.SH BUG -Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. -.SH SEE ALSO -.BR cowsay (1), -.BR fortune (6). -.br -.SH AUTHOR -ponysay was written by Erkin Batu Altunbaş -with major contributions from Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens et al. -.\" See file CREDITS for full list. -.PP -This manual page was written by Louis Taylor -for the Debian project (and may be used by others), and edited -by Mattias Andrée . -.br -.PP -This program is licensed under WTFPL. -.\" See file COPYING to see the license. diff --git a/manpage.es.6 b/manpage.es.6 deleted file mode 100644 index e152221..0000000 --- a/manpage.es.6 +++ /dev/null @@ -1,99 +0,0 @@ -.\" -.\" First parameter, NAME, should be all caps -.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection -.\" other parameters are allowed: see man(7), man(1) -.TH SECCIÓN DE PONYSAY "Julio 13, 2012" -.\" Please adjust this date whenever revising the manpage. -.\" -.\" Some roff macros, for reference: -.\" .nh disable hyphenation -.\" .hy enable hyphenation -.\" .ad l left justify -.\" .ad b justify to both left and right margins -.\" .nf disable filling -.\" .fi enable filling -.\" .br insert line break -.\" .sp insert n+1 empty lines -.\" for manpage-specific macros, see man(7) -.SH NOMBRE -ponysay \- un contenedor para cowsay usando ponis -.SH SINOPSIS -.B ponysay -.RI [ opciones ] -.RI [ mensaje ] -.br -.B ponythink -.RI [ opciones ] -.RI [ mensaje ] -.br -.SH DESCRIPCIÓN -.PP -.\" TeX users may be more comfortable with the \fB\fP and -.\" \fI\fP escape sequences to invode bold face and italics, -.\" respectively. -\fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. -Este es en realidad un contenedor de \fIcowsay\fP, aunque sigue usando este último para motrar el mensaje. -Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, El mensaje debería de tener -alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. -.PP -Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, -un archivo, ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de -caracteres.) -.PP -\fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. -.SH OPCIONES -El resumen de las opciones incluidas acontinuación. -.TP -.B \-h -Muestra la ayuda, un resumen de las opciones. -.TP -.B \-v -Muestra la versión del programa. -.TP -.B \-l -Lista los ponis disponibles. -.TP -.B \-f \fInombre\fP -selecciona un poni específico (ambos un archivo o el nombre directamente.) -.TP -.B \-W \fIcolumna\fP -El numero de columnas en el que será impreso el mensaje -.SH ENVIRONMENT -.TP -.B PONYSAY_BOTTOM -Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo el inicio de esta -es impreso, dejando solo dos líneas blancas. si desea que apesar de todo sea impreso el fondo del -inicio puede exportar \fIPONYSAY_BOTTOM\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP. -.TP -.B PONYSAY_SHELL_LINES -Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo dos líneas blancas -serán impresas. si desea más o menos lineas blancas, puede exportar \fIPONYSAY_SHELL_LINES\fP con -el valor de cuantas líneas blancas desea. Naturalmente esto solo tomará efecto si la salida no es mas -larga que la pantalla. -.TP -.B PONYSAY_FULL_WIDTH -Puede exportar \fIPONYSAY_FULL_WIDTH\fP con el valor \fIno\fP, \fIn\fP o \fI0\fP, si usted -no desea que la salida sea truncada para que calce en la terminal. -.TP -.B PONYSAY_TRUNCATE_HEIGHT -Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si -desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. -.SH BUGs -Los bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. -.SH VEA TAMBIÉN -.BR cowsay (1), -.BR fortune (1). -.br -.SH AUTOR -ponysay fue escrito por Erkin Batu Altunbaş -con la ayuda de Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens y otros. -.\" vea el archivo CREDITS para la lista completa -.PP -Este manual originalmente fue escrito por Louis Taylor -para el proyecto Debian (y puede ser usado por otros), y editado por -Mattias Andrée . -La actual traducción al español fue escrita por Pablo Lezaeta . -.br -.PP -Este programa está licenciado bajo la WTFPL -.\" Vea el archivo COPYING para ver la licencia completa. diff --git a/manuals/manpage.6 b/manuals/manpage.6 new file mode 100644 index 0000000..e25a560 --- /dev/null +++ b/manuals/manpage.6 @@ -0,0 +1,96 @@ +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH PONYSAY 6 "July 12, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NAME +ponysay \- A cowsay wrapper with ponies +.SH SYNOPSIS +.B ponysay +.RI [ options ] +.RI [ message ] +.br +.B ponythink +.RI [ options ] +.RI [ message ] +.br +.SH DESCRIPTION +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBponysay\fP displays an image of a pony saying some text provided by the user in a terminal. +It is a wrapper for \fIcowsay\fP. If \fImessage\fP is not provided, it accepts standard input, +word-wraps the message given at about 40 columns, and prints the pony saying the given message on standard output. +.PP +If no arguments are provided, the program only accepts standard input piped from another program, a file or +either here documents or here strings (see man bash(1) for details on here document/string.) +.PP +\fBponythink\fP is to \fIponysay\fP as \fIcowthink\fP is to \fIcowsay\fP. +.SH OPTIONS +A summary of options is included below. +.TP +.B \-h +Show summary of options. +.TP +.B \-v +Show version of program. +.TP +.B \-l +List pony files. +.TP +.B \-f \fIname\fP +Select a pony (either a file name or a pony name.) +.TP +.B \-W \fIcolumn\fP +The screen column where the message should be wrapped +.SH ENVIRONMENT +.TP +.B PONYSAY_BOTTOM +Under TTY (Linux VT), if the output is larger the the screen's height, only the beginning is +printed, leaving two blank lines. If you want the buttom to be printed rather the the beginning +you can export \fIPONYSAY_BOTTOM\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP. +.TP +.B PONYSAY_SHELL_LINES +Under TTY (Linux VT), if the output is larger the the screen's height, two lines are left blank. +If you want more, or less, blank lines you can export \fIPONYSAY_SHELL_LINES\fP with the value +of how many blank lines you want. Naturally this takes effect if the output is not actually larger +than the screen. +.TP +.B PONYSAY_FULL_WIDTH +You can export \fIPONYSAY_FULL_WIDTH\fP with the value \fIno\fP, \fIn\fP or \fI0\fP, if you +do not want the output to be truncated on the width to fit the terminal. +.TP +.B PONYSAY_TRUNCATE_HEIGHT +Export \fIPONYSAY_TRUNCATE_HEIGHT\fP with the value \fIyes\fP, \fIy\fP or \fI1\fP, if you +want to truncate the output on the height even if you are not running \fIponysay\fP under TTY. +.SH BUG +Bugs can be reported in <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.SH SEE ALSO +.BR cowsay (1), +.BR fortune (6). +.br +.SH AUTHOR +ponysay was written by Erkin Batu Altunbaş +with major contributions from Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens et al. +.\" See file CREDITS for full list. +.PP +This manual page was written by Louis Taylor +for the Debian project (and may be used by others), and edited +by Mattias Andrée . +.br +.PP +This program is licensed under WTFPL. +.\" See file COPYING to see the license. diff --git a/manuals/manpage.es.6 b/manuals/manpage.es.6 new file mode 100644 index 0000000..e152221 --- /dev/null +++ b/manuals/manpage.es.6 @@ -0,0 +1,99 @@ +.\" +.\" First parameter, NAME, should be all caps +.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection +.\" other parameters are allowed: see man(7), man(1) +.TH SECCIÓN DE PONYSAY "Julio 13, 2012" +.\" Please adjust this date whenever revising the manpage. +.\" +.\" Some roff macros, for reference: +.\" .nh disable hyphenation +.\" .hy enable hyphenation +.\" .ad l left justify +.\" .ad b justify to both left and right margins +.\" .nf disable filling +.\" .fi enable filling +.\" .br insert line break +.\" .sp insert n+1 empty lines +.\" for manpage-specific macros, see man(7) +.SH NOMBRE +ponysay \- un contenedor para cowsay usando ponis +.SH SINOPSIS +.B ponysay +.RI [ opciones ] +.RI [ mensaje ] +.br +.B ponythink +.RI [ opciones ] +.RI [ mensaje ] +.br +.SH DESCRIPCIÓN +.PP +.\" TeX users may be more comfortable with the \fB\fP and +.\" \fI\fP escape sequences to invode bold face and italics, +.\" respectively. +\fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. +Este es en realidad un contenedor de \fIcowsay\fP, aunque sigue usando este último para motrar el mensaje. +Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, El mensaje debería de tener +alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. +.PP +Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, +un archivo, ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de +caracteres.) +.PP +\fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. +.SH OPCIONES +El resumen de las opciones incluidas acontinuación. +.TP +.B \-h +Muestra la ayuda, un resumen de las opciones. +.TP +.B \-v +Muestra la versión del programa. +.TP +.B \-l +Lista los ponis disponibles. +.TP +.B \-f \fInombre\fP +selecciona un poni específico (ambos un archivo o el nombre directamente.) +.TP +.B \-W \fIcolumna\fP +El numero de columnas en el que será impreso el mensaje +.SH ENVIRONMENT +.TP +.B PONYSAY_BOTTOM +Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo el inicio de esta +es impreso, dejando solo dos líneas blancas. si desea que apesar de todo sea impreso el fondo del +inicio puede exportar \fIPONYSAY_BOTTOM\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP. +.TP +.B PONYSAY_SHELL_LINES +Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo dos líneas blancas +serán impresas. si desea más o menos lineas blancas, puede exportar \fIPONYSAY_SHELL_LINES\fP con +el valor de cuantas líneas blancas desea. Naturalmente esto solo tomará efecto si la salida no es mas +larga que la pantalla. +.TP +.B PONYSAY_FULL_WIDTH +Puede exportar \fIPONYSAY_FULL_WIDTH\fP con el valor \fIno\fP, \fIn\fP o \fI0\fP, si usted +no desea que la salida sea truncada para que calce en la terminal. +.TP +.B PONYSAY_TRUNCATE_HEIGHT +Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si +desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. +.SH BUGs +Los bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.SH VEA TAMBIÉN +.BR cowsay (1), +.BR fortune (1). +.br +.SH AUTOR +ponysay fue escrito por Erkin Batu Altunbaş +con la ayuda de Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens y otros. +.\" vea el archivo CREDITS para la lista completa +.PP +Este manual originalmente fue escrito por Louis Taylor +para el proyecto Debian (y puede ser usado por otros), y editado por +Mattias Andrée . +La actual traducción al español fue escrita por Pablo Lezaeta . +.br +.PP +Este programa está licenciado bajo la WTFPL +.\" Vea el archivo COPYING para ver la licencia completa. -- cgit From 0e7d3b1ad8c23208159fd7f71d81d1415f51225a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 13 Jul 2012 12:26:33 +0200 Subject: Espanish manual was not up to date with the English manual --- manuals/manpage.es.6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manuals/manpage.es.6 b/manuals/manpage.es.6 index e152221..a3aadcd 100644 --- a/manuals/manpage.es.6 +++ b/manuals/manpage.es.6 @@ -2,7 +2,7 @@ .\" First parameter, NAME, should be all caps .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection .\" other parameters are allowed: see man(7), man(1) -.TH SECCIÓN DE PONYSAY "Julio 13, 2012" +.TH PONYSAY 6 "Julio 13, 2012" .\" Please adjust this date whenever revising the manpage. .\" .\" Some roff macros, for reference: @@ -82,7 +82,7 @@ desea truncar la salida en el largo aun si no se está dentro de una terminal \f Los bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH VEA TAMBIÉN .BR cowsay (1), -.BR fortune (1). +.BR fortune (6). .br .SH AUTOR ponysay fue escrito por Erkin Batu Altunbaş -- cgit From 429a8227ae86524ae86ea76ab352ab74175af3b6 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Fri, 13 Jul 2012 21:17:31 -0400 Subject: Aded Shining Armor, Full pixelart based on Royalguard --- ponies/shiningarmor.pony | 27 +++++++++++++++++++++++++++ ttyponies/shiningarmor.pony | 28 ++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 ponies/shiningarmor.pony create mode 100644 ttyponies/shiningarmor.pony diff --git a/ponies/shiningarmor.pony b/ponies/shiningarmor.pony new file mode 100644 index 0000000..292a859 --- /dev/null +++ b/ponies/shiningarmor.pony @@ -0,0 +1,27 @@ +$the_cow =< Date: Fri, 13 Jul 2012 21:28:50 -0400 Subject: Fix a little caligrafic and syntaxis error --- manuals/manpage.es.6 | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/manuals/manpage.es.6 b/manuals/manpage.es.6 index a3aadcd..babff31 100644 --- a/manuals/manpage.es.6 +++ b/manuals/manpage.es.6 @@ -32,17 +32,17 @@ ponysay \- un contenedor para cowsay usando ponis .\" \fI\fP escape sequences to invode bold face and italics, .\" respectively. \fBponysay\fP muestra la imagen de un poni con un texto dado por el usuario, esto dentro de la terminal. -Este es en realidad un contenedor de \fIcowsay\fP, aunque sigue usando este último para motrar el mensaje. -Si el \fImesaje\fP no es provisto, este aceptara una orden estándar, El mensaje debería de tener -alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje en una salida estándar. +Este es en realidad un contenedor para \fIcowsay\fP, aunque sigue usando este último para motrar el mensaje. +Si el \fImesaje\fP no es provisto, este aceptará una orden estándar. +El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería de mostrar este mensaje +en una salida estándar. .PP Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, -un archivo, ambos archivos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de -caracteres.) +un archivo, ambos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de caracteres.) .PP \fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. .SH OPCIONES -El resumen de las opciones incluidas acontinuación. +El resumen de las opciones está incluido acontinuación. .TP .B \-h Muestra la ayuda, un resumen de las opciones. @@ -54,11 +54,11 @@ Muestra la versión del programa. Lista los ponis disponibles. .TP .B \-f \fInombre\fP -selecciona un poni específico (ambos un archivo o el nombre directamente.) +selecciona un poni específico (ya sea un archivo o el nombre directamente) .TP .B \-W \fIcolumna\fP El numero de columnas en el que será impreso el mensaje -.SH ENVIRONMENT +.SH ENTORNO .TP .B PONYSAY_BOTTOM Bajo TTY (Linux VT), si la imagen es mas larga que la terminal en pantalla, solo el inicio de esta -- cgit From 2e5f9275909fdadf9c12b954daf4cff31447b027 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Fri, 13 Jul 2012 21:33:33 -0400 Subject: Fix a ( in manpages.es --- manuals/manpage.es.6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manuals/manpage.es.6 b/manuals/manpage.es.6 index babff31..5eace83 100644 --- a/manuals/manpage.es.6 +++ b/manuals/manpage.es.6 @@ -38,7 +38,7 @@ El mensaje debería de tener alrededor de 40 columnas, y el o la poni devería d en una salida estándar. .PP Si no se le da ningun argumenrto, el programa solo aceptará mensajes estándares provistos por otro programa, -un archivo, ambos o cadena de caracteres, vease man bash(1) para detalles de archivos y cadenas de caracteres.) +un archivo, ambos o cadena de caracteres (vease man bash(1) para detalles de archivos y cadenas de caracteres.) .PP \fBponythink\fP es a \fIponysay\fP como \fIcowthink\fP es a \fIcowsay\fP. .SH OPCIONES @@ -79,7 +79,7 @@ no desea que la salida sea truncada para que calce en la terminal. Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. .SH BUGs -Los bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.nfLos bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH VEA TAMBIÉN .BR cowsay (1), .BR fortune (6). -- cgit From e152878bab0bfb6431728c86949432f5539ada80 Mon Sep 17 00:00:00 2001 From: Pablo Lezaeta Date: Fri, 13 Jul 2012 21:37:36 -0400 Subject: Cleana little manpages.es --- manuals/manpage.es.6 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manuals/manpage.es.6 b/manuals/manpage.es.6 index 5eace83..f5f8db2 100644 --- a/manuals/manpage.es.6 +++ b/manuals/manpage.es.6 @@ -79,7 +79,10 @@ no desea que la salida sea truncada para que calce en la terminal. Exporte \fIPONYSAY_TRUNCATE_HEIGHT\fP con el valor \fIyes\fP, \fIy\fP o \fI1\fP, si desea truncar la salida en el largo aun si no se está dentro de una terminal \fIponysay\fP bajo TTY. .SH BUGs -.nfLos bugs pueden ser reportados en <\fBhttps://github.com/erkin/ponysay/issues\fP>. +.nf +Los bugs pueden ser reportados en +.br +<\fBhttps://github.com/erkin/ponysay/issues\fP>. .SH VEA TAMBIÉN .BR cowsay (1), .BR fortune (6). @@ -92,6 +95,7 @@ con la ayuda de Mattias Andrée, Sven-Hendrik Haase, Jan Alexander Steffens y ot Este manual originalmente fue escrito por Louis Taylor para el proyecto Debian (y puede ser usado por otros), y editado por Mattias Andrée . +.br La actual traducción al español fue escrita por Pablo Lezaeta . .br .PP -- cgit From 24f52c0e3196d4dbfb4a3c8b32d29a10ad021dac Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 15 Jul 2012 01:01:50 +0200 Subject: dezebraised and non-kms-comp. ttyponies + auto building of ttyponies --- Makefile | 4 ++ ttyponies.sh | 11 +++++ ttyponies/allie.pony | 52 ++++++++++----------- ttyponies/aloe.pony | 44 +++++++++--------- ttyponies/angel.pony | 34 +++++++------- ttyponies/applebloom.pony | 38 ++++++++-------- ttyponies/applebumkin.pony | 42 ++++++++--------- ttyponies/applefritter.pony | 42 ++++++++--------- ttyponies/applejack.pony | 50 ++++++++++---------- ttyponies/archer.pony | 36 +++++++-------- ttyponies/berrypunch.pony | 44 +++++++++--------- ttyponies/bigmac.pony | 46 +++++++++---------- ttyponies/blinkie.pony | 34 +++++++------- ttyponies/blues.pony | 42 ++++++++--------- ttyponies/bonbon.pony | 44 +++++++++--------- ttyponies/bonbonstand.pony | 44 +++++++++--------- ttyponies/boxxy.pony | 50 ++++++++++---------- ttyponies/braeburn.pony | 46 +++++++++---------- ttyponies/caesar.pony | 50 ++++++++++---------- ttyponies/candymane.pony | 48 ++++++++++---------- ttyponies/caramel.pony | 44 +++++++++--------- ttyponies/carecake.pony | 52 ++++++++++----------- ttyponies/carrot.pony | 40 ++++++++-------- ttyponies/carrottop.pony | 2 +- ttyponies/celestia.pony | 94 +++++++++++++++++++------------------- ttyponies/changeling.pony | 46 +++++++++---------- ttyponies/cheerilee.pony | 42 ++++++++--------- ttyponies/cheerilee80.pony | 42 ++++++++--------- ttyponies/chrysalis.pony | 66 +++++++++++++-------------- ttyponies/clyde.pony | 46 +++++++++---------- ttyponies/colgate.pony | 46 +++++++++---------- ttyponies/colton.pony | 44 +++++++++--------- ttyponies/cupcake.pony | 48 ++++++++++---------- ttyponies/daisy.pony | 46 +++++++++---------- ttyponies/daringdo.pony | 46 +++++++++---------- ttyponies/davenport.pony | 42 ++++++++--------- ttyponies/derpy.pony | 44 +++++++++--------- ttyponies/derpysit.pony | 32 ++++++------- ttyponies/derpystand.pony | 42 ++++++++--------- ttyponies/derpystandwing.pony | 42 ++++++++--------- ttyponies/diamondtiara.pony | 40 ++++++++-------- ttyponies/dinky.pony | 36 +++++++-------- ttyponies/discord.pony | 98 ++++++++++++++++++++-------------------- ttyponies/doctor.pony | 48 ++++++++++---------- ttyponies/doctornohat.pony | 42 ++++++++--------- ttyponies/elsie.pony | 42 ++++++++--------- ttyponies/fancypants.pony | 54 +++++++++++----------- ttyponies/fido.pony | 48 ++++++++++---------- ttyponies/fillistia.pony | 44 +++++++++--------- ttyponies/fillycelestia.pony | 44 +++++++++--------- ttyponies/fillydash.pony | 38 ++++++++-------- ttyponies/fillydashfly.pony | 32 ++++++------- ttyponies/fillyjack.pony | 36 +++++++-------- ttyponies/fillyjacktravel.pony | 36 +++++++-------- ttyponies/fillypinkie.pony | 34 +++++++------- ttyponies/fillypinkiecurly.pony | 42 ++++++++--------- ttyponies/fillyrarity.pony | 36 +++++++-------- ttyponies/fillyshy.pony | 36 +++++++-------- ttyponies/fillytwilight.pony | 34 +++++++------- ttyponies/flam.pony | 52 ++++++++++----------- ttyponies/fleurdelis.pony | 52 ++++++++++----------- ttyponies/flim.pony | 50 ++++++++++---------- ttyponies/fluttershy.pony | 40 ++++++++-------- ttyponies/fluttershygala.pony | 44 +++++++++--------- ttyponies/gilda.pony | 60 ++++++++++++------------ ttyponies/gildastand.pony | 46 +++++++++---------- ttyponies/goldenharvest.pony | 2 +- ttyponies/granny.pony | 40 ++++++++-------- ttyponies/grannychair.pony | 42 ++++++++--------- ttyponies/grannysleep.pony | 40 ++++++++-------- ttyponies/gummy.pony | 24 +++++----- ttyponies/harpass.pony | 2 +- ttyponies/heartstrings.pony | 2 +- ttyponies/hoity.pony | 46 +++++++++---------- ttyponies/horte.pony | 42 ++++++++--------- ttyponies/inky.pony | 38 ++++++++-------- ttyponies/ironwillwalk.pony | 72 ++++++++++++++--------------- ttyponies/laflour.pony | 46 +++++++++---------- ttyponies/lightning.pony | 44 +++++++++--------- ttyponies/lily.pony | 44 +++++++++--------- ttyponies/lintsalot.pony | 36 +++++++-------- ttyponies/lotus.pony | 44 +++++++++--------- ttyponies/luna.pony | 64 +++++++++++++------------- ttyponies/lunafly.pony | 74 +++++++++++++++--------------- ttyponies/lyra.pony | 44 +++++++++--------- ttyponies/lyrasit.pony | 50 ++++++++++---------- ttyponies/maredowellfly.pony | 42 ++++++++--------- ttyponies/maredowellgallop.pony | 40 ++++++++-------- ttyponies/master.pony | 42 ++++++++--------- ttyponies/mayor.pony | 48 ++++++++++---------- ttyponies/minuette.pony | 2 +- ttyponies/mjolna.pony | 44 +++++++++--------- ttyponies/mrssparkle.pony | 42 ++++++++--------- ttyponies/nightmare.pony | 74 +++++++++++++++--------------- ttyponies/noteworthy.pony | 2 +- ttyponies/octavia.pony | 58 ++++++++++++------------ ttyponies/opal.pony | 30 ++++++------ ttyponies/orange.pony | 42 ++++++++--------- ttyponies/parasprite.pony | 24 +++++----- ttyponies/perry.pony | 2 +- ttyponies/philomena.pony | 38 ++++++++-------- ttyponies/philomenaphoenix.pony | 52 ++++++++++----------- ttyponies/photofinish.pony | 44 +++++++++--------- ttyponies/pinkamina.pony | 42 ++++++++--------- ttyponies/pinkie.pony | 38 ++++++++-------- ttyponies/pinkiebounce.pony | 42 ++++++++--------- ttyponies/pinkiecannon.pony | 54 +++++++++++----------- ttyponies/pinkiechicken.pony | 48 ++++++++++---------- ttyponies/pinkiegala.pony | 46 +++++++++---------- ttyponies/pipsqueak.pony | 34 +++++++------- ttyponies/pokey.pony | 46 +++++++++---------- ttyponies/pokeypierce.pony | 2 +- ttyponies/rainbow.pony | 44 +++++++++--------- ttyponies/rainbowfly.pony | 32 ++++++------- ttyponies/rainbowgala.pony | 44 +++++++++--------- ttyponies/rainbowsleep.pony | 36 +++++++-------- ttyponies/raindrops.pony | 42 ++++++++--------- ttyponies/rarity.pony | 42 ++++++++--------- ttyponies/raritydrama.pony | 70 ++++++++++++++-------------- ttyponies/rarityfly.pony | 58 ++++++++++++------------ ttyponies/raritygala.pony | 46 +++++++++---------- ttyponies/rarityponder.pony | 44 +++++++++--------- ttyponies/raritysdad.pony | 46 +++++++++---------- ttyponies/raritysmom.pony | 50 ++++++++++---------- ttyponies/redheart.pony | 46 +++++++++---------- ttyponies/rocky.pony | 48 ++++++++++---------- ttyponies/rose.pony | 46 +++++++++---------- ttyponies/rover.pony | 46 +++++++++---------- ttyponies/royalguard.pony | 48 ++++++++++---------- ttyponies/royalnightguard.pony | 44 +++++++++--------- ttyponies/ruby.pony | 36 +++++++-------- ttyponies/sapphire.pony | 56 +++++++++++------------ ttyponies/scootaloo.pony | 42 ++++++++--------- ttyponies/screwball.pony | 38 ++++++++-------- ttyponies/shadowbolts.pony | 44 +++++++++--------- ttyponies/shiningarmor.pony | 44 +++++++++--------- ttyponies/shiningarmorguard.pony | 46 +++++++++---------- ttyponies/silverspoon.pony | 36 +++++++-------- ttyponies/silverstar.pony | 48 ++++++++++---------- ttyponies/sindy.pony | 36 +++++++-------- ttyponies/snails.pony | 46 +++++++++---------- ttyponies/snips.pony | 34 +++++++------- ttyponies/soarin.pony | 44 +++++++++--------- ttyponies/soigne.pony | 48 ++++++++++---------- ttyponies/sparkler.pony | 44 +++++++++--------- ttyponies/spike.pony | 32 ++++++------- ttyponies/spikefloat.pony | 32 ++++++------- ttyponies/spikelove.pony | 30 ++++++------ ttyponies/spitfire.pony | 36 +++++++-------- ttyponies/spot.pony | 38 ++++++++-------- ttyponies/stella.pony | 48 ++++++++++---------- ttyponies/strongheart.pony | 50 ++++++++++---------- ttyponies/sue.pony | 46 +++++++++---------- ttyponies/suedance.pony | 52 ++++++++++----------- ttyponies/sweetie.pony | 40 ++++++++-------- ttyponies/tank.pony | 38 ++++++++-------- ttyponies/trixie.pony | 54 +++++++++++----------- ttyponies/trixiestage.pony | 92 ++++++++++++++++++------------------- ttyponies/trixiestand.pony | 54 +++++++++++----------- ttyponies/turnip.pony | 42 ++++++++--------- ttyponies/twilight.pony | 40 ++++++++-------- ttyponies/twilightrage.pony | 64 +++++++++++++------------- ttyponies/twist.pony | 36 +++++++-------- ttyponies/vinyl.pony | 46 +++++++++---------- ttyponies/violet.pony | 44 +++++++++--------- ttyponies/winona.pony | 34 +++++++------- ttyponies/woona.pony | 54 +++++++++++----------- ttyponies/zecora.pony | 46 +++++++++---------- 168 files changed, 3591 insertions(+), 3576 deletions(-) create mode 100755 ttyponies.sh diff --git a/Makefile b/Makefile index 3fb7dcd..52277e1 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,10 @@ all: ponysaytruncater ponysaytruncater: gcc -o "ponysaytruncater" "ponysaytruncater.c" +ttyponies: + mkdir -p ttyponies + ./ttyponies.sh + install: all mkdir -p "$(DESTDIR)/usr/share/ponysay/" mkdir -p "$(DESTDIR)/usr/share/ponysay/ponies" diff --git a/ttyponies.sh b/ttyponies.sh new file mode 100755 index 0000000..bcfbe95 --- /dev/null +++ b/ttyponies.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +for pony in $(ls ponies/); do + echo "building ttypony: $pony" + if [[ `readlink "ponies/$pony"` = '' ]]; then + ponysay2ttyponysay < "ponies/$pony" | unzebra -e | tty2colourfultty -c 1 -e > "ttyponies/$pony" + elif [[ ! -f "ttyponies/$pony" ]]; then + ln -s `readlink "ponies/$pony"` "ttyponies/$pony" + fi +done + diff --git a/ttyponies/allie.pony b/ttyponies/allie.pony index a791294..a3452f2 100644 --- a/ttyponies/allie.pony +++ b/ttyponies/allie.pony @@ -1,31 +1,31 @@ $the_cow =< Date: Sun, 15 Jul 2012 01:15:58 +0200 Subject: whoops --- completion/bash-completion.sh | 4 +- ttyponies.sh | 4 +- ttyponies/allie.pony | 48 ++++++++++---------- ttyponies/aloe.pony | 40 ++++++++--------- ttyponies/angel.pony | 34 +++++++------- ttyponies/applebloom.pony | 38 ++++++++-------- ttyponies/applebumkin.pony | 40 ++++++++--------- ttyponies/applefritter.pony | 40 ++++++++--------- ttyponies/applejack.pony | 44 +++++++++--------- ttyponies/archer.pony | 32 +++++++------- ttyponies/berrypunch.pony | 42 +++++++++--------- ttyponies/bigmac.pony | 44 +++++++++--------- ttyponies/blinkie.pony | 30 ++++++------- ttyponies/blues.pony | 40 ++++++++--------- ttyponies/bonbon.pony | 40 ++++++++--------- ttyponies/bonbonstand.pony | 42 +++++++++--------- ttyponies/boxxy.pony | 46 +++++++++---------- ttyponies/braeburn.pony | 46 +++++++++---------- ttyponies/caesar.pony | 48 ++++++++++---------- ttyponies/candymane.pony | 44 +++++++++--------- ttyponies/caramel.pony | 42 +++++++++--------- ttyponies/carecake.pony | 50 ++++++++++----------- ttyponies/carrot.pony | 36 +++++++-------- ttyponies/celestia.pony | 68 ++++++++++++++-------------- ttyponies/changeling.pony | 38 ++++++++-------- ttyponies/cheerilee.pony | 40 ++++++++--------- ttyponies/cheerilee80.pony | 38 ++++++++-------- ttyponies/chrysalis.pony | 60 ++++++++++++------------- ttyponies/clyde.pony | 46 +++++++++---------- ttyponies/colgate.pony | 42 +++++++++--------- ttyponies/colton.pony | 40 ++++++++--------- ttyponies/cupcake.pony | 46 +++++++++---------- ttyponies/daisy.pony | 42 +++++++++--------- ttyponies/daringdo.pony | 44 +++++++++--------- ttyponies/davenport.pony | 40 ++++++++--------- ttyponies/derpy.pony | 38 ++++++++-------- ttyponies/derpysit.pony | 28 ++++++------ ttyponies/derpystand.pony | 40 ++++++++--------- ttyponies/derpystandwing.pony | 40 ++++++++--------- ttyponies/diamondtiara.pony | 36 +++++++-------- ttyponies/dinky.pony | 32 +++++++------- ttyponies/discord.pony | 96 ++++++++++++++++++++-------------------- ttyponies/doctor.pony | 40 ++++++++--------- ttyponies/doctornohat.pony | 40 ++++++++--------- ttyponies/elsie.pony | 40 ++++++++--------- ttyponies/fancypants.pony | 52 +++++++++++----------- ttyponies/fido.pony | 44 +++++++++--------- ttyponies/fillistia.pony | 36 +++++++-------- ttyponies/fillycelestia.pony | 42 +++++++++--------- ttyponies/fillydash.pony | 36 +++++++-------- ttyponies/fillydashfly.pony | 28 ++++++------ ttyponies/fillyjack.pony | 32 +++++++------- ttyponies/fillyjacktravel.pony | 32 +++++++------- ttyponies/fillypinkie.pony | 30 ++++++------- ttyponies/fillypinkiecurly.pony | 38 ++++++++-------- ttyponies/fillyrarity.pony | 32 +++++++------- ttyponies/fillyshy.pony | 32 +++++++------- ttyponies/fillytwilight.pony | 32 +++++++------- ttyponies/flam.pony | 46 +++++++++---------- ttyponies/fleurdelis.pony | 46 +++++++++---------- ttyponies/flim.pony | 46 +++++++++---------- ttyponies/fluttershy.pony | 40 ++++++++--------- ttyponies/fluttershygala.pony | 40 ++++++++--------- ttyponies/gilda.pony | 56 +++++++++++------------ ttyponies/gildastand.pony | 42 +++++++++--------- ttyponies/granny.pony | 36 +++++++-------- ttyponies/grannychair.pony | 38 ++++++++-------- ttyponies/grannysleep.pony | 36 +++++++-------- ttyponies/gummy.pony | 20 ++++----- ttyponies/hoity.pony | 44 +++++++++--------- ttyponies/horte.pony | 38 ++++++++-------- ttyponies/inky.pony | 34 +++++++------- ttyponies/ironwillwalk.pony | 68 ++++++++++++++-------------- ttyponies/laflour.pony | 42 +++++++++--------- ttyponies/lightning.pony | 40 ++++++++--------- ttyponies/lily.pony | 40 ++++++++--------- ttyponies/lintsalot.pony | 32 +++++++------- ttyponies/lotus.pony | 40 ++++++++--------- ttyponies/luna.pony | 58 ++++++++++++------------ ttyponies/lunafly.pony | 72 +++++++++++++++--------------- ttyponies/lyra.pony | 36 +++++++-------- ttyponies/lyrasit.pony | 46 +++++++++---------- ttyponies/maredowellfly.pony | 40 ++++++++--------- ttyponies/maredowellgallop.pony | 38 ++++++++-------- ttyponies/master.pony | 40 ++++++++--------- ttyponies/mayor.pony | 44 +++++++++--------- ttyponies/mjolna.pony | 42 +++++++++--------- ttyponies/mrssparkle.pony | 38 ++++++++-------- ttyponies/nightmare.pony | 70 ++++++++++++++--------------- ttyponies/octavia.pony | 56 +++++++++++------------ ttyponies/opal.pony | 28 ++++++------ ttyponies/orange.pony | 40 ++++++++--------- ttyponies/parasprite.pony | 20 ++++----- ttyponies/philomena.pony | 34 +++++++------- ttyponies/philomenaphoenix.pony | 30 ++++++------- ttyponies/photofinish.pony | 40 ++++++++--------- ttyponies/pinkamina.pony | 40 ++++++++--------- ttyponies/pinkie.pony | 34 +++++++------- ttyponies/pinkiebounce.pony | 38 ++++++++-------- ttyponies/pinkiecannon.pony | 50 ++++++++++----------- ttyponies/pinkiechicken.pony | 44 +++++++++--------- ttyponies/pinkiegala.pony | 42 +++++++++--------- ttyponies/pipsqueak.pony | 32 +++++++------- ttyponies/pokey.pony | 42 +++++++++--------- ttyponies/rainbow.pony | 42 +++++++++--------- ttyponies/rainbowfly.pony | 30 ++++++------- ttyponies/rainbowgala.pony | 40 ++++++++--------- ttyponies/rainbowsleep.pony | 32 +++++++------- ttyponies/raindrops.pony | 40 ++++++++--------- ttyponies/rarity.pony | 40 ++++++++--------- ttyponies/raritydrama.pony | 58 ++++++++++++------------ ttyponies/rarityfly.pony | 56 +++++++++++------------ ttyponies/raritygala.pony | 42 +++++++++--------- ttyponies/rarityponder.pony | 42 +++++++++--------- ttyponies/raritysdad.pony | 44 +++++++++--------- ttyponies/raritysmom.pony | 46 +++++++++---------- ttyponies/redheart.pony | 44 +++++++++--------- ttyponies/rocky.pony | 44 +++++++++--------- ttyponies/rose.pony | 42 +++++++++--------- ttyponies/rover.pony | 42 +++++++++--------- ttyponies/royalguard.pony | 44 +++++++++--------- ttyponies/royalnightguard.pony | 42 +++++++++--------- ttyponies/ruby.pony | 32 +++++++------- ttyponies/sapphire.pony | 54 +++++++++++----------- ttyponies/scootaloo.pony | 38 ++++++++-------- ttyponies/screwball.pony | 36 +++++++-------- ttyponies/shadowbolts.pony | 40 ++++++++--------- ttyponies/shiningarmor.pony | 42 +++++++++--------- ttyponies/shiningarmorguard.pony | 42 +++++++++--------- ttyponies/silverspoon.pony | 32 +++++++------- ttyponies/silverstar.pony | 46 +++++++++---------- ttyponies/sindy.pony | 32 +++++++------- ttyponies/snails.pony | 42 +++++++++--------- ttyponies/snips.pony | 30 ++++++------- ttyponies/soarin.pony | 40 ++++++++--------- ttyponies/soigne.pony | 44 +++++++++--------- ttyponies/sparkler.pony | 40 ++++++++--------- ttyponies/spike.pony | 28 ++++++------ ttyponies/spikefloat.pony | 30 ++++++------- ttyponies/spikelove.pony | 28 ++++++------ ttyponies/spitfire.pony | 32 +++++++------- ttyponies/spot.pony | 36 +++++++-------- ttyponies/stella.pony | 44 +++++++++--------- ttyponies/strongheart.pony | 50 ++++++++++----------- ttyponies/sue.pony | 42 +++++++++--------- ttyponies/suedance.pony | 50 ++++++++++----------- ttyponies/sweetie.pony | 36 +++++++-------- ttyponies/tank.pony | 38 ++++++++-------- ttyponies/trixie.pony | 50 ++++++++++----------- ttyponies/trixiestage.pony | 88 ++++++++++++++++++------------------ ttyponies/trixiestand.pony | 52 +++++++++++----------- ttyponies/turnip.pony | 40 ++++++++--------- ttyponies/twilight.pony | 38 ++++++++-------- ttyponies/twilightrage.pony | 50 ++++++++++----------- ttyponies/twist.pony | 32 +++++++------- ttyponies/vinyl.pony | 38 ++++++++-------- ttyponies/violet.pony | 42 +++++++++--------- ttyponies/winona.pony | 32 +++++++------- ttyponies/woona.pony | 46 +++++++++---------- ttyponies/zecora.pony | 46 +++++++++---------- 160 files changed, 3280 insertions(+), 3280 deletions(-) diff --git a/completion/bash-completion.sh b/completion/bash-completion.sh index 54b50fe..82eb608 100644 --- a/completion/bash-completion.sh +++ b/completion/bash-completion.sh @@ -18,10 +18,10 @@ _ponysay() fi if [[ -d $sysponies ]]; then - COMPREPLY+=( $( compgen -W "$(ls $sysponies | sed -e 's/.pony//g')" -- "$cur" ) ) + COMPREPLY+=( $( compgen -W "$(ls --color=no $sysponies | sed -e 's/.pony//g')" -- "$cur" ) ) fi if [[ -d $usrponies ]]; then - COMPREPLY+=( $( compgen -W "$(ls $usrponies | sed -e 's/.pony//g')" -- "$cur" ) ) + COMPREPLY+=( $( compgen -W "$(ls --color=no $usrponies | sed -e 's/.pony//g')" -- "$cur" ) ) fi elif [[ $prev = "-W" ]]; then cols=$( echo `tput cols` - 10 | bc ) diff --git a/ttyponies.sh b/ttyponies.sh index bcfbe95..4913119 100755 --- a/ttyponies.sh +++ b/ttyponies.sh @@ -1,9 +1,9 @@ #!/bin/bash -for pony in $(ls ponies/); do +for pony in $(ls --color=no ponies/); do echo "building ttypony: $pony" if [[ `readlink "ponies/$pony"` = '' ]]; then - ponysay2ttyponysay < "ponies/$pony" | unzebra -e | tty2colourfultty -c 1 -e > "ttyponies/$pony" + ponysay2ttyponysay < "ponies/$pony" | tty2colourfultty -c 1 -e > "ttyponies/$pony" elif [[ ! -f "ttyponies/$pony" ]]; then ln -s `readlink "ponies/$pony"` "ttyponies/$pony" fi diff --git a/ttyponies/allie.pony b/ttyponies/allie.pony index a3452f2..11625fc 100644 --- a/ttyponies/allie.pony +++ b/ttyponies/allie.pony @@ -2,30 +2,30 @@ $the_cow =< Date: Sun, 15 Jul 2012 04:56:19 +0200 Subject: new ponies from desktop-ponies in deviantart including filly cadence and steven magnet --- ponies/applecore.pony | 23 ++++++++++++++++++ ponies/applejackscarecrow.pony | 35 ++++++++++++++++++++++++++++ ponies/cottoncloudy.pony | 22 ++++++++++++++++++ ponies/diamondmint.pony | 27 ++++++++++++++++++++++ ponies/fillycadence.pony | 29 +++++++++++++++++++++++ ponies/fluttershyshy.pony | 27 ++++++++++++++++++++++ ponies/fluttershystare.pony | 25 ++++++++++++++++++++ ponies/horsepower.pony | 1 + ponies/oinkoinkoink.pony | 25 ++++++++++++++++++++ ponies/pinkiecannonfront.pony | 27 ++++++++++++++++++++++ ponies/pinkiecannonhappy.pony | 30 ++++++++++++++++++++++++ ponies/pinkiegummy.pony | 34 +++++++++++++++++++++++++++ ponies/pinkiehugfluttershy.pony | 34 +++++++++++++++++++++++++++ ponies/pinkiehugsfluttershy.pony | 30 ++++++++++++++++++++++++ ponies/pinkiepartycannon.pony | 28 ++++++++++++++++++++++ ponies/pinkieprincess.pony | 31 +++++++++++++++++++++++++ ponies/pinkiesilly.pony | 27 ++++++++++++++++++++++ ponies/pinkietongue.pony | 27 ++++++++++++++++++++++ ponies/pinkiewhoops.pony | 31 +++++++++++++++++++++++++ ponies/pinkiewhoopseat.pony | 34 +++++++++++++++++++++++++++ ponies/pinkiewhoopsout.pony | 31 +++++++++++++++++++++++++ ponies/rainbowdrag.pony | 36 +++++++++++++++++++++++++++++ ponies/rainbowsalute.pony | 27 ++++++++++++++++++++++ ponies/rainbowshine.pony | 27 ++++++++++++++++++++++ ponies/snowflake.pony | 27 ++++++++++++++++++++++ ponies/spikemustache.pony | 22 ++++++++++++++++++ ponies/stevenmagnet.pony | 44 +++++++++++++++++++++++++++++++++++ ponies/stevenmagnettrue.pony | 44 +++++++++++++++++++++++++++++++++++ ponies/twilightcrazyfromball.pony | 28 ++++++++++++++++++++++ ponies/twilightzero.pony | 28 ++++++++++++++++++++++ ponies/wildfire.pony | 27 ++++++++++++++++++++++ ttyponies/applecore.pony | 24 +++++++++++++++++++ ttyponies/applejackscarecrow.pony | 36 +++++++++++++++++++++++++++++ ttyponies/cottoncloudy.pony | 23 ++++++++++++++++++ ttyponies/diamondmint.pony | 28 ++++++++++++++++++++++ ttyponies/fillycadence.pony | 30 ++++++++++++++++++++++++ ttyponies/fluttershyshy.pony | 28 ++++++++++++++++++++++ ttyponies/fluttershystare.pony | 26 +++++++++++++++++++++ ttyponies/horsepower.pony | 1 + ttyponies/oinkoinkoink.pony | 26 +++++++++++++++++++++ ttyponies/pinkiecannonfront.pony | 28 ++++++++++++++++++++++ ttyponies/pinkiecannonhappy.pony | 31 +++++++++++++++++++++++++ ttyponies/pinkiegummy.pony | 35 ++++++++++++++++++++++++++++ ttyponies/pinkiehugfluttershy.pony | 35 ++++++++++++++++++++++++++++ ttyponies/pinkiehugsfluttershy.pony | 31 +++++++++++++++++++++++++ ttyponies/pinkiepartycannon.pony | 29 +++++++++++++++++++++++ ttyponies/pinkieprincess.pony | 32 +++++++++++++++++++++++++ ttyponies/pinkiesilly.pony | 28 ++++++++++++++++++++++ ttyponies/pinkietongue.pony | 28 ++++++++++++++++++++++ ttyponies/pinkiewhoops.pony | 32 +++++++++++++++++++++++++ ttyponies/pinkiewhoopseat.pony | 35 ++++++++++++++++++++++++++++ ttyponies/pinkiewhoopsout.pony | 32 +++++++++++++++++++++++++ ttyponies/rainbowdrag.pony | 37 +++++++++++++++++++++++++++++ ttyponies/rainbowsalute.pony | 28 ++++++++++++++++++++++ ttyponies/rainbowshine.pony | 28 ++++++++++++++++++++++ ttyponies/snowflake.pony | 28 ++++++++++++++++++++++ ttyponies/spikemustache.pony | 23 ++++++++++++++++++ ttyponies/stevenmagnet.pony | 45 ++++++++++++++++++++++++++++++++++++ ttyponies/stevenmagnettrue.pony | 45 ++++++++++++++++++++++++++++++++++++ ttyponies/twilightcrazyfromball.pony | 29 +++++++++++++++++++++++ ttyponies/twilightzero.pony | 29 +++++++++++++++++++++++ ttyponies/wildfire.pony | 28 ++++++++++++++++++++++ 62 files changed, 1806 insertions(+) create mode 100644 ponies/applecore.pony create mode 100644 ponies/applejackscarecrow.pony create mode 100644 ponies/cottoncloudy.pony create mode 100644 ponies/diamondmint.pony create mode 100644 ponies/fillycadence.pony create mode 100644 ponies/fluttershyshy.pony create mode 100644 ponies/fluttershystare.pony create mode 120000 ponies/horsepower.pony create mode 100644 ponies/oinkoinkoink.pony create mode 100644 ponies/pinkiecannonfront.pony create mode 100644 ponies/pinkiecannonhappy.pony create mode 100644 ponies/pinkiegummy.pony create mode 100644 ponies/pinkiehugfluttershy.pony create mode 100644 ponies/pinkiehugsfluttershy.pony create mode 100644 ponies/pinkiepartycannon.pony create mode 100644 ponies/pinkieprincess.pony create mode 100644 ponies/pinkiesilly.pony create mode 100644 ponies/pinkietongue.pony create mode 100644 ponies/pinkiewhoops.pony create mode 100644 ponies/pinkiewhoopseat.pony create mode 100644 ponies/pinkiewhoopsout.pony create mode 100644 ponies/rainbowdrag.pony create mode 100644 ponies/rainbowsalute.pony create mode 100644 ponies/rainbowshine.pony create mode 100644 ponies/snowflake.pony create mode 100644 ponies/spikemustache.pony create mode 100644 ponies/stevenmagnet.pony create mode 100644 ponies/stevenmagnettrue.pony create mode 100644 ponies/twilightcrazyfromball.pony create mode 100644 ponies/twilightzero.pony create mode 100644 ponies/wildfire.pony create mode 100644 ttyponies/applecore.pony create mode 100644 ttyponies/applejackscarecrow.pony create mode 100644 ttyponies/cottoncloudy.pony create mode 100644 ttyponies/diamondmint.pony create mode 100644 ttyponies/fillycadence.pony create mode 100644 ttyponies/fluttershyshy.pony create mode 100644 ttyponies/fluttershystare.pony create mode 120000 ttyponies/horsepower.pony create mode 100644 ttyponies/oinkoinkoink.pony create mode 100644 ttyponies/pinkiecannonfront.pony create mode 100644 ttyponies/pinkiecannonhappy.pony create mode 100644 ttyponies/pinkiegummy.pony create mode 100644 ttyponies/pinkiehugfluttershy.pony create mode 100644 ttyponies/pinkiehugsfluttershy.pony create mode 100644 ttyponies/pinkiepartycannon.pony create mode 100644 ttyponies/pinkieprincess.pony create mode 100644 ttyponies/pinkiesilly.pony create mode 100644 ttyponies/pinkietongue.pony create mode 100644 ttyponies/pinkiewhoops.pony create mode 100644 ttyponies/pinkiewhoopseat.pony create mode 100644 ttyponies/pinkiewhoopsout.pony create mode 100644 ttyponies/rainbowdrag.pony create mode 100644 ttyponies/rainbowsalute.pony create mode 100644 ttyponies/rainbowshine.pony create mode 100644 ttyponies/snowflake.pony create mode 100644 ttyponies/spikemustache.pony create mode 100644 ttyponies/stevenmagnet.pony create mode 100644 ttyponies/stevenmagnettrue.pony create mode 100644 ttyponies/twilightcrazyfromball.pony create mode 100644 ttyponies/twilightzero.pony create mode 100644 ttyponies/wildfire.pony diff --git a/ponies/applecore.pony b/ponies/applecore.pony new file mode 100644 index 0000000..42d0c0a --- /dev/null +++ b/ponies/applecore.pony @@ -0,0 +1,23 @@ +$the_cow =< Date: Sun, 15 Jul 2012 15:01:12 +0200 Subject: linking fillycadance to fillycadence (I firmly believe cadance should be spelled cadence as both the word and the name) --- ponies/fillycadance.pony | 1 + 1 file changed, 1 insertion(+) create mode 120000 ponies/fillycadance.pony diff --git a/ponies/fillycadance.pony b/ponies/fillycadance.pony new file mode 120000 index 0000000..6deb24a --- /dev/null +++ b/ponies/fillycadance.pony @@ -0,0 +1 @@ +./fillycadence.pony \ No newline at end of file -- cgit From 69a9e0b059c7865956790815cee9772681332e7e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 15 Jul 2012 15:01:56 +0200 Subject: forgot link in ttyponies --- ttyponies/fillycadance.pony | 1 + 1 file changed, 1 insertion(+) create mode 120000 ttyponies/fillycadance.pony diff --git a/ttyponies/fillycadance.pony b/ttyponies/fillycadance.pony new file mode 120000 index 0000000..6deb24a --- /dev/null +++ b/ttyponies/fillycadance.pony @@ -0,0 +1 @@ +./fillycadence.pony \ No newline at end of file -- cgit From 54dd31f5c67885fe9f29acc5766a502c183c6f67 Mon Sep 17 00:00:00 2001 From: Erkin Batu Altunbaş Date: Sun, 15 Jul 2012 17:49:47 +0200 Subject: First stable release. Let's see how stable it is... --- ponysay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ponysay b/ponysay index 7ec7943..3e2908c 100755 --- a/ponysay +++ b/ponysay @@ -1,6 +1,6 @@ #!/usr/bin/env bash -version=0.10 +version=1.0 SYSTEMPONIES="/usr/share/ponysay/ponies" HOMEPONIES="${HOME}/.ponysay/ponies" pony="*" -- cgit From 30c1b841f6241f6c097ce4ef188d37c13a2efd3d Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 16 Jul 2012 11:06:44 +0200 Subject: It is officially spelled Cadance --- ponies/fillycadance.pony | 30 +++++++++++++++++++++++++++++- ponies/fillycadence.pony | 29 ----------------------------- ttyponies/fillycadance.pony | 31 ++++++++++++++++++++++++++++++- ttyponies/fillycadence.pony | 30 ------------------------------ 4 files changed, 59 insertions(+), 61 deletions(-) mode change 120000 => 100644 ponies/fillycadance.pony delete mode 100644 ponies/fillycadence.pony mode change 120000 => 100644 ttyponies/fillycadance.pony delete mode 100644 ttyponies/fillycadence.pony diff --git a/ponies/fillycadance.pony b/ponies/fillycadance.pony deleted file mode 120000 index 6deb24a..0000000 --- a/ponies/fillycadance.pony +++ /dev/null @@ -1 +0,0 @@ -./fillycadence.pony \ No newline at end of file diff --git a/ponies/fillycadance.pony b/ponies/fillycadance.pony new file mode 100644 index 0000000..7c5bdc8 --- /dev/null +++ b/ponies/fillycadance.pony @@ -0,0 +1,29 @@ +$the_cow =< Date: Mon, 16 Jul 2012 11:49:50 +0200 Subject: ponysay -l is columnated, however a bit slow and limited to 80 in screen width --- ponysay | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/ponysay b/ponysay index 3e2908c..dc36713 100755 --- a/ponysay +++ b/ponysay @@ -19,11 +19,29 @@ version() { } list() { - echo "ponyfiles located in $SYSTEMPONIES:" - ls -1 $SYSTEMPONIES | sed "s/.pony//" + scrw=`(stty size <&2 || echo 0 0) | cut -d ' ' -f 2` + (( $scrw > 80 )) && scrw=80 + + echo -e "\\e[01mponyfiles located in $SYSTEMPONIES:\\e[21m" + files=`ls -1 $SYSTEMPONIES | sed "s/.pony//"` + maxw=1 + for file in $files; do + w=$(( `echo $file | wc -m` + 2 )) + (( $maxw < $w )) && maxw=$w + done + cols=$(( $scrw / $maxw )) + echo "$files" | pr -T --columns=$cols + if [[ -d $HOMEPONIES ]]; then - echo "ponyfiles located in $HOMEPONIES:" - ls -1 $HOMEPONIES | sed "s/.pony//" + echo -e "\\e[01mponyfiles located in $HOMEPONIES:\\e[21m" + files=`ls -1 $HOMEPONIES | sed "s/.pony//"` + maxw=1 + for file in $files; do + w=$(( `echo $file | wc -m` )) + (( $maxw < $w )) && maxw=$w + done + cols=$(( $scrw / $maxw )) + echo "$files" | pr -T --columns=$cols fi } -- cgit From 96661759901c2e8a9110bb93574c0b33743b65e7 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 16 Jul 2012 16:15:56 +0200 Subject: Makefile gzip compresses manpages --- Makefile | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index 52277e1..598767d 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,12 @@ -all: ponysaytruncater +all: ponysaytruncater manpages 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 + ttyponies: mkdir -p ttyponies ./ttyponies.sh @@ -29,12 +33,12 @@ install: all install "COPYING" "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" mkdir -p "$(DESTDIR)/usr/share/man/man6" - install "manuals/manpage.6" "$(DESTDIR)/usr/share/man/man6/ponysay.6" - ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/man6/ponythink.6" + 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" mkdir -p "$(DESTDIR)/usr/share/man/es/man6" - install "manuals/manpage.es.6" "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" - ln -sf "ponysay.6" "$(DESTDIR)/usr/share/man/es/man6/ponythink.6" + 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" uninstall: rm -fr "$(DESTDIR)/usr/share/ponysay/ponies" @@ -45,9 +49,13 @@ uninstall: unlink "$(DESTDIR)/usr/share/zsh/site-functions/_ponysay"; unlink "$(DESTDIR)/usr/share/licenses/ponysay/COPYING" unlink "$(DESTDIR)/usr/share/bash-completion/completions/ponysay" - unlink "$(DESTDIR)/usr/share/man/man6/ponysay.6" - unlink "$(DESTDIR)/usr/share/man/man6/ponythink.6" - unlink "$(DESTDIR)/usr/share/man/es/man6/ponysay.6" - unlink "$(DESTDIR)/usr/share/man/es/man6/ponythink.6" + unlink "$(DESTDIR)/usr/share/man/man6/ponysay.6.gz" + 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" + clean: rm -f "ponysaytruncater" + rm manuals/manpage.6.gz + rm manuals/manpage.es.6.gz + -- cgit From 0ee48b90dec3c9c9a352d2060d7e477142fcc80c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 17 Jul 2012 00:14:49 +0200 Subject: using tail instread of tac | head | tac --- ponysay | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/ponysay b/ponysay index dc36713..27ddfc5 100755 --- a/ponysay +++ b/ponysay @@ -92,19 +92,23 @@ say() { fi } - function htrunc + if [ "$PONYSAY_SHELL_LINES" = "" ]; then + PONYSAY_SHELL_LINES=2 + fi + function htrunchead { - if [ "$PONYSAY_SHELL_LINES" = "" ]; then - PONYSAY_SHELL_LINES=2 - fi head --lines=$(( `stty size <&2 | cut -d ' ' -f 1` - $PONYSAY_SHELL_LINES )) } + function htrunctail + { + tail --lines=$(( `stty size <&2 | cut -d ' ' -f 1` - $PONYSAY_SHELL_LINES )) + } if [ "$TERM" = "linux" ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'yes' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'y' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = '1' ]; then if [ "$PONYSAY_BOTTOM" = 'yes' ] || [ "$PONYSAY_BOTTOM" = 'y' ] || [ "$PONYSAY_BOTTOM" = '1' ]; then - exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | tac | htrunc | tac + exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | htrunctail else - exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | htrunc + exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc | htrunchead fi else exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | wtrunc -- cgit From 8c986f062a12064234cd27d143d4e967ff4aba06 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 17 Jul 2012 00:53:54 +0200 Subject: file listing dependencies --- DEPENDENCIES | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 DEPENDENCIES diff --git a/DEPENDENCIES b/DEPENDENCIES new file mode 100644 index 0000000..c8b1eef --- /dev/null +++ b/DEPENDENCIES @@ -0,0 +1,41 @@ +REQUIRED dependencies: + +bash: required for the main script [file: ponysay] + +cowsay: this is a wrapper for cowsay + +coreutils: the main script [file: ponysay] uses stty, cut, ls, cat, head and tail + +sed: used to remove .pony from pony named when running ponysay -l + + + +OPTIONAL dependencies: + +(none) + + + +PONY PROVIDER dependencies: + +make: required to run `make ttyponies` + +coreutils: ln and readlink are used in ttyponies.sh + +bash: required to run ttyponies.sh + +util-say: used by ttyponies.sh to builder ttyponies from xterm ponies +# Available for Arch:ers in AUR as util-say-git are on github at https://github.com/maandree/util-say + + + +MAKE dependencies: + +gcc: used for compiling ponysaytruncater.c + +gzip: used for compressing manpages + +make: required to run the make script + +coreutils: make script uses install unlink rm ln mkdir cp + -- cgit