diff options
author | Erkin Batu Altunbaş <erkinbatu@gmail.com> | 2012-02-26 17:43:26 +0100 |
---|---|---|
committer | Erkin Batu Altunbaş <erkinbatu@gmail.com> | 2012-02-26 17:43:26 +0100 |
commit | af081d264334ea5bf335eec70a2ee2f276b822da (patch) | |
tree | 432b1f40aa7043d4742b4f6446786308adbe2bfe | |
parent | 3c5f2adc168f726c506270694983f9dbc1bde535 (diff) | |
download | ponysay-af081d264334ea5bf335eec70a2ee2f276b822da.tar.gz ponysay-af081d264334ea5bf335eec70a2ee2f276b822da.tar.bz2 ponysay-af081d264334ea5bf335eec70a2ee2f276b822da.zip |
I don't even know.
-rw-r--r-- | LICENSE | 13 | ||||
-rw-r--r-- | README | 3 | ||||
-rwxr-xr-x | ponysay | 26 |
3 files changed, 42 insertions, 0 deletions
@@ -0,0 +1,13 @@ + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + Version 2, December 2004 + + Copyright (C) 2012 <our names> + + 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. + + DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. You just DO WHAT THE FUCK YOU WANT TO. @@ -1,3 +1,6 @@ +I don't even know... + Author of the cows is unknown. Depends on cowsay for obvious reasons. Not even finished. +Put "ponies" to /usr/share or /usr/local/share @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +PERL_UNICODE=S +ponydir=/usr/share/ponies +lponydir=/usr/local/share/ponies +function ponyf() { + if [[ -f ${ponydir}/${1}.cow ]] ; then + cowsay -f "${ponydir}/${1}.cow" $@ + elif [[ -f ${lponydir}/${1}.cow ]] ; then + cowsay -f "${lponydir}/${1}.cow" $@ + else + ponyr + fi +} +function ponyr() { + cowsay -f $(ls /usr/share/ponies/*.cow | sort -R | head -n1) $@ +} + +while getopts f:h:v: OPT +do + case ${OPT} in + v) echo "v0.01" ;; + h) echo "helpherpderp" ;; + f) ponyf $* ;; + *) ponyr $* ;; + esac +done |