chiark / gitweb /
More commands.
[disorder] / scripts / setup.anjou
1 #! /bin/bash
2 #
3 # Setup script for local test installs.
4 #
5
6 set -e
7
8 if type gmake >/dev/null 2>&1; then
9   MAKE=gmake
10 else
11   MAKE=make
12 fi
13
14 if type really >/dev/null 2>&1; then
15   REALLY=really
16 else
17   REALLY=sudo
18 fi
19
20 echo --- build ---
21 ${MAKE}
22 echo --- install ---
23 ${REALLY} ${MAKE} install
24 echo --- teardown ---
25 ${REALLY} bash scripts/teardown || true
26 echo --- setup ---
27 ${REALLY} bash scripts/setup --root /music \
28                              --encoding ISO-8859-1 \
29                              --port none \
30                              --email rjk@greenend.org.uk \
31                              --register y \
32                              --play local
33 echo --- done ---