From 7dadcfc9f35c2bd83db18a9799bb77c34d303a73 Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Fri, 2 Jan 2015 17:01:53 +0100 Subject: [PATCH 1/5] Added picture for New Year's Eve --- assets/new_year | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 assets/new_year diff --git a/assets/new_year b/assets/new_year new file mode 100644 index 0000000..11fb874 --- /dev/null +++ b/assets/new_year @@ -0,0 +1,26 @@ + .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. + * ) * + ) * ( + ) ( ( + ( ) ( ) + ) * ) ) ( + ( ( ( * + ) H ) ) + [ ] ( + ( * |-| * ) ( + * ) |_| . ) + ( | | . + ) / \ . ' . * + ( |_____| ' . . + ) | ___ | \~~~/ ' . ( + * | \ / | \_/ \~~~/ ) + | _Y_ | | \_/ ( + * |-----| __|__ | * + `-----` __|__ + + __, ,__) __, ,__) __, ,__) + (--|__| _ ,_ ,_ (--|\ | _ (--\ | _ _ ,_ + _| |(_||_)|_)(_| _| \|(/_(_|_) \|(/_(_|| + ( | | ,_| ( (__| + + .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. From 99d270f4201c26bc1839de12dfb5292cc8431e6f Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Fri, 2 Jan 2015 17:04:46 +0100 Subject: [PATCH 2/5] Added PIZZAART-option happy new year with picture new_year --- src/pizza | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/pizza b/src/pizza index a26f3f5..3f1c730 100755 --- a/src/pizza +++ b/src/pizza @@ -14,6 +14,7 @@ help() { echo " -l Send a heart" echo " -b Send happy birthday" echo " -c Send merry christmas" + echo " -n Send a happy new year" echo " -m Receivers address (non-optional)" echo " -s Senders address, defaults to user@host" echo " -h Print this help-message" @@ -25,7 +26,7 @@ if [ ! $1 ]; then exit 1 fi -while getopts "plbchm:s:" opt; do +while getopts "plbcnhm:s:" opt; do case ${opt} in p ) : ${PIZZAART:="pizza"} @@ -39,7 +40,10 @@ while getopts "plbchm:s:" opt; do c ) : ${PIZZAART:="christmastree"} ;; - m ) + n ) + : ${PIZZAART:="new_year"} + ;; + m ) PIZZARCV="${OPTARG}" ;; s ) @@ -66,4 +70,4 @@ if [ ! $PIZZARCV ]; then fi mail -s "${PIZZAUSER} sent you a ${PIZZAART} on ${PIZZAHOST}!" -S from=${PIZZASEND} ${PIZZARCV} < "${PIZZAINC}/${PIZZAART}" -exit 0 +exit 0 \ No newline at end of file From a87ede033d75d86d6fd77c652d10d880625fae90 Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Fri, 2 Jan 2015 17:38:25 +0100 Subject: [PATCH 3/5] Indentation fixed; newline --- src/pizza | 60 +++++++++++++++++++++++++++---------------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/pizza b/src/pizza index 3f1c730..c340431 100755 --- a/src/pizza +++ b/src/pizza @@ -28,35 +28,35 @@ fi while getopts "plbcnhm:s:" opt; do case ${opt} in - p ) - : ${PIZZAART:="pizza"} - ;; - l ) - : ${PIZZAART:="heart"} - ;; - b ) - : ${PIZZAART:="birthdaycake"} - ;; - c ) - : ${PIZZAART:="christmastree"} - ;; - n ) - : ${PIZZAART:="new_year"} - ;; - m ) - PIZZARCV="${OPTARG}" - ;; - s ) - PIZZASEND="${OPTARG}" - ;; - h ) - help - exit 0 - ;; - \?) - help - exit 1 - ;; + p ) + : ${PIZZAART:="pizza"} + ;; + l ) + : ${PIZZAART:="heart"} + ;; + b ) + : ${PIZZAART:="birthdaycake"} + ;; + c ) + : ${PIZZAART:="christmastree"} + ;; + n ) + : ${PIZZAART:="new_year"} + ;; + m ) + PIZZARCV="${OPTARG}" + ;; + s ) + PIZZASEND="${OPTARG}" + ;; + h ) + help + exit 0 + ;; + \?) + help + exit 1 + ;; esac done @@ -70,4 +70,4 @@ if [ ! $PIZZARCV ]; then fi mail -s "${PIZZAUSER} sent you a ${PIZZAART} on ${PIZZAHOST}!" -S from=${PIZZASEND} ${PIZZARCV} < "${PIZZAINC}/${PIZZAART}" -exit 0 \ No newline at end of file +exit 0 From 7a1e18a5c69d23407b9ed4613951cc43a6aa98f8 Mon Sep 17 00:00:00 2001 From: Gesina Schwalbe Date: Fri, 2 Jan 2015 17:51:37 +0100 Subject: [PATCH 4/5] Deleted space --- assets/new_year | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/assets/new_year b/assets/new_year index 11fb874..2bb998b 100644 --- a/assets/new_year +++ b/assets/new_year @@ -1,4 +1,4 @@ - .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. +.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. * ) * ) * ( ) ( ( @@ -17,10 +17,9 @@ | _Y_ | | \_/ ( * |-----| __|__ | * `-----` __|__ - + __, ,__) __, ,__) __, ,__) (--|__| _ ,_ ,_ (--|\ | _ (--\ | _ _ ,_ _| |(_||_)|_)(_| _| \|(/_(_|_) \|(/_(_|| ( | | ,_| ( (__| - - .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. + .:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:._.:*~*:. \ No newline at end of file From 56ce526f5425d562dae484fdb6c7617ac3476354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Fri, 2 Jan 2015 21:38:51 +0100 Subject: [PATCH 5/5] Fixed Layout --- src/pizza | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/src/pizza b/src/pizza index c340431..55e595c 100755 --- a/src/pizza +++ b/src/pizza @@ -28,35 +28,35 @@ fi while getopts "plbcnhm:s:" opt; do case ${opt} in - p ) - : ${PIZZAART:="pizza"} - ;; - l ) - : ${PIZZAART:="heart"} - ;; - b ) - : ${PIZZAART:="birthdaycake"} - ;; - c ) - : ${PIZZAART:="christmastree"} - ;; - n ) - : ${PIZZAART:="new_year"} + p ) + : ${PIZZAART:="pizza"} + ;; + l ) + : ${PIZZAART:="heart"} + ;; + b ) + : ${PIZZAART:="birthdaycake"} + ;; + c ) + : ${PIZZAART:="christmastree"} + ;; + n ) + : ${PIZZAART:="new_year"} ;; m ) - PIZZARCV="${OPTARG}" - ;; - s ) - PIZZASEND="${OPTARG}" - ;; - h ) - help - exit 0 - ;; - \?) - help - exit 1 - ;; + PIZZARCV="${OPTARG}" + ;; + s ) + PIZZASEND="${OPTARG}" + ;; + h ) + help + exit 0 + ;; + \?) + help + exit 1 + ;; esac done