From d68569741daef544e1d5f1cc668bde1554a3c6d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Sat, 27 Dec 2014 23:38:14 +0100 Subject: [PATCH] Updated README with run instructions - README now tells how to run pizza from bare repo - README tells dependency on a running mail delivery service --- README | 8 +++++++- src/pizza | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README b/README index f13d704..ebe209d 100644 --- a/README +++ b/README @@ -1,3 +1,9 @@ Ever wanted to share a pizza (or else) to anyone who offers a service, for example hosts a data sharing service? -With PIZZA, you may now send pizza (or else) to any mailaddress out there! \ No newline at end of file +With PIZZA, you may now send pizza (or else) to any mailaddress out there! + +Usage: You need a running mail-service on your system (i.e. a postfix configured to use a smarthost). +To run "pizza" from the bare repository, cd into the src directory and run + +export PIZZAINC="../assets"; ./pizza + diff --git a/src/pizza b/src/pizza index 868b196..8258444 100755 --- a/src/pizza +++ b/src/pizza @@ -21,7 +21,7 @@ else mail -s "${PIZZAUSER} sent you a Pizza on ${PIZZAHOST}" $2 < "${PIZZAINC}/pizza" ;; "-l" | "--heart") - mail -s "${PIZZAUSER} sent you a Heart on ${PIZZAHOST}" $2 < "${PIZZAINC}/heart.txt" + mail -s "${PIZZAUSER} sent you a Heart on ${PIZZAHOST}" $2 < "${PIZZAINC}/heart" ;; "-h" | "--help") help