summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Grassberger <petertheone@gmail.com>2016-02-05 00:37:07 (GMT)
committerPeter Grassberger <petertheone@gmail.com>2016-02-05 00:37:07 (GMT)
commit6bc93a0fc64e39386c688f98885541a48d1a6c07 (patch)
tree9362a94e0a27c43bdcf55ef36c5b564d9c1d017a
parentca488f8d3609500b89b95c6c2ff6c533e62a7aea (diff)
add build.sh
-rw-r--r--.gitignore2
-rw-r--r--README2
-rwxr-xr-xbuild.sh14
3 files changed, 18 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index 0e7aed8..be094ed 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
contrib/Pflichtenheft-Peter.pdf
+www/js/rhwebimport.*
+www/styles/rhwebimport.*
diff --git a/README b/README
index 9899324..cdc1316 100644
--- a/README
+++ b/README
@@ -86,3 +86,5 @@ add the following to the virtualhost config:
AliasMatch "^/(js|img|styles)(.*)" "/var/www/rhwebimport/www/$1$2"
AliasMatch "^(.*)" "/var/www/rhwebimport/www/index.html"
~~~/snip~~~
+
+# ./build.sh
diff --git a/build.sh b/build.sh
new file mode 100755
index 0000000..b57882f
--- /dev/null
+++ b/build.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+# Build
+
+cd www/js
+rm -f rhwebimport.js
+cat apps.js auth.js clock.js dropzone.js importer.js jingles.js musicgrid.js musicpools.js rdxport.js rdxport.rh.js shows.js utils.js >> rhwebimport.js
+
+cd ../styles
+rm -f rhwebimport.css
+cat auth.css jingles.css main-style.css musicgrid.css musicpools.css shows.css >> rhwebimport.css
+
+#todo: minify
+
+echo "done"