From e569dad6dd6447e7a137522cd47637b0d2b6979a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20R=C3=BCmpelein?= Date: Fri, 2 Jan 2015 12:55:12 +0100 Subject: [PATCH] Added install-script --- INSTALL | 2 +- README | 3 +-- install.sh | 5 +++++ 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100755 install.sh diff --git a/INSTALL b/INSTALL index e990e52..0a81709 100644 --- a/INSTALL +++ b/INSTALL @@ -1,6 +1,6 @@ ==== Installing Pizza ==== -For Pizza to work, you need a running mailservice (either server, smarthost or local) using "mailx" from s-nail (provided by, i.e., heirloom-mailx in debian, s-nail in arch) . Install Pizza running the following commands as root after cd'ing into the git base directory: +For Pizza to work, you need a running mailservice (either server, smarthost or local) using "mailx" from s-nail (provided by, i.e., heirloom-mailx in debian, s-nail in arch). Install Pizza by running "install.sh" from the base-dir, or the following commands as root after cd'ing into the git base directory: install -m 755 src/pizza /usr/local/bin/pizza mkdir -p /usr/local/share/pizza diff --git a/README b/README index 3cf011b..38b852d 100644 --- a/README +++ b/README @@ -2,9 +2,8 @@ Ever wanted to share a pizza (or else) to anyone who offers a service, for examp With PIZZA, you may now send pizza (or else) to any mailaddress out there! -Usage: See INSTTALL for prerequisites. +Usage: See INSTALL for prerequisites. To run "pizza" from the bare repository, cd into the src directory and run export PIZZAINC="../assets"; ./pizza - diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..d694bf4 --- /dev/null +++ b/install.sh @@ -0,0 +1,5 @@ +#/bin/bash + +install -m 755 src/pizza /usr/local/bin/pizza +mkdir -p /usr/local/share/pizza +install -m 644 assets/* /usr/local/share/pizza/