summaryrefslogtreecommitdiffstats
path: root/compile.sh
diff options
context:
space:
mode:
authorben2018-09-18 10:28:07 +0200
committerben2018-09-18 10:28:07 +0200
commitef8cdd36436ef1bd1303886a101c8ee60c6f9721 (patch)
tree39077d0d9b070cc018738dbd3d246214e4749322 /compile.sh
downloadhoneyjs-master.tar.gz
honeyjs-master.tar.bz2
honeyjs-master.tar.xz
Initial public commitHEADmaster
Diffstat (limited to 'compile.sh')
-rwxr-xr-xcompile.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh
new file mode 100755
index 0000000..add48d2
--- /dev/null
+++ b/compile.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+rm -rf dist
+mkdir -p dist/static
+cp index.html dist/
+cp 403.html dist/
+cp -r shell dist/
+cp -r python dist/
+cp -r rescue dist/
+cp -r rest-api dist/
+cp static/*.css dist/static/
+cp static/*.bin dist/static/
+cp static/*.img dist/static/
+cp static/*.png dist/static/
+cp static/*min*.js dist/static/
+cd static
+find ./ -name '*.js' ! -name '*.min.*' -exec garble $PWD/{} $PWD/../dist/static/{} on \;