From 2e6bdcfa22b04e259111eb3bc3d34c1117d7dc66 Mon Sep 17 00:00:00 2001 Message-Id: <2e6bdcfa22b04e259111eb3bc3d34c1117d7dc66.1717603320.git.mdw@distorted.org.uk> From: Mark Wooding Date: Mon, 2 Jun 2008 21:48:28 +0100 Subject: [PATCH] Add scripts/setup.anjou for local test installs Organization: Straylight/Edgeware From: Richard Kettlewell --- scripts/setup.anjou | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100755 scripts/setup.anjou diff --git a/scripts/setup.anjou b/scripts/setup.anjou new file mode 100755 index 0000000..1fc0bae --- /dev/null +++ b/scripts/setup.anjou @@ -0,0 +1,33 @@ +#! /bin/bash +# +# Setup script for local test installs. +# + +set -e + +if type gmake >/dev/null 2>&1; then + MAKE=gmake +else + MAKE=make +fi + +if type really >/dev/null 2>&1; then + REALLY=really +else + REALLY=sudo +fi + +echo --- build --- +${MAKE} +echo --- install --- +${REALLY} ${MAKE} install +echo --- teardown --- +${REALLY} ./scripts/teardown || true +echo --- setup --- +${REALLY} ./scripts/setup --root /music \ + --encoding ISO-8859-1 \ + --port none \ + --email rjk@greenend.org.uk \ + --register y \ + --play local +echo --- done --- -- [mdw]