summaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
Diffstat (limited to 'http')
-rw-r--r--[-rwxr-xr-x]http/bin/mkws11
1 files changed, 10 insertions, 1 deletions
diff --git a/http/bin/mkws b/http/bin/mkws
index fd0e726..d706905 100755..100644
--- a/http/bin/mkws
+++ b/http/bin/mkws
@@ -9,9 +9,18 @@ usage() {
test $# -lt 1 && usage
export SRC="$(realpath src)"
+export PUBLIC="$(realpath public)"
export SHARE="$(realpath share)"
export OUT="$(realpath out)"
-mkdir -p ${OUT}
+
+if [ -d "${PUBLIC}" ]
+then
+ echo "Copying from $(basename "${PUBLIC}") into $(basename "${OUT}")"
+ cp -r "${PUBLIC}" "${OUT}"
+else
+ echo "No $(basename "${PUBLIC}") folder found"
+ mkdir -p "${OUT}"
+fi
if ! test -f "${SRC}"/index.upphtml
then