aboutsummaryrefslogtreecommitdiffstats
path: root/script
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-04-13 15:00:02 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-06-30 20:54:08 +0100
commit28bec8043fa33027958b0afd1b264fd25aa27d9d (patch)
tree91f0f84eac0ffdb8f6ecf2b82e48da21dca57486 /script
parentaf5c9769ed7f3d4217d9a5de21cf07aa977737be (diff)
Add scripts to rule them all.
Along the model of GitHub’s scripts, add generic scripts to bootstrap, update, test or run a server.
Diffstat (limited to 'script')
-rwxr-xr-xscript/bootstrap7
-rwxr-xr-xscript/console6
-rwxr-xr-xscript/server6
-rwxr-xr-xscript/setup7
-rwxr-xr-xscript/test6
-rwxr-xr-xscript/update9
6 files changed, 41 insertions, 0 deletions
diff --git a/script/bootstrap b/script/bootstrap
new file mode 100755
index 000000000..dfebd7449
--- /dev/null
+++ b/script/bootstrap
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+cd "$(dirname "$0")/.."
+
+git submodule --quiet update --init --recursive --rebase
+bin/install_perl_modules
diff --git a/script/console b/script/console
new file mode 100755
index 000000000..e92105f73
--- /dev/null
+++ b/script/console
@@ -0,0 +1,6 @@
+#!/bin/bash
+
+set -e
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
+
+eval `"$DIR"/setenv.pl`
diff --git a/script/server b/script/server
new file mode 100755
index 000000000..2ed265a28
--- /dev/null
+++ b/script/server
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+cd "$(dirname "$0")/.."
+
+script/fixmystreet_app_server.pl --fork --restart --debug $@
diff --git a/script/setup b/script/setup
new file mode 100755
index 000000000..30f375712
--- /dev/null
+++ b/script/setup
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+cd "$(dirname "$0")/.."
+
+# Same as update for now
+script/update
diff --git a/script/test b/script/test
new file mode 100755
index 000000000..778c967b4
--- /dev/null
+++ b/script/test
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+set -e
+cd "$(dirname "$0")/.."
+
+bin/run-tests $@
diff --git a/script/update b/script/update
new file mode 100755
index 000000000..aa97935d3
--- /dev/null
+++ b/script/update
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+cd "$(dirname "$0")/.."
+
+script/bootstrap
+bin/update-schema --commit
+bin/make_css
+commonlib/bin/gettext-makemo