aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-11-09 13:12:41 +0000
committers-ol <s-ol@users.noreply.github.com>2018-11-09 13:14:37 +0000
commite14778aa3a7f09dadf6623ade6698730ad79ccb4 (patch)
treeb21984147c34293fe91e76eef13bfd969b3a7368
parentcleanup (diff)
downloadmmm-e14778aa3a7f09dadf6623ade6698730ad79ccb4.tar.gz
mmm-e14778aa3a7f09dadf6623ade6698730ad79ccb4.zip
add deploy script
-rw-r--r--.gitignore1
-rwxr-xr-xdeploy.sh7
-rw-r--r--mmm/mmmfs/browser.moon3
3 files changed, 8 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index e783c29..34245b3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
+dist
##### TUP GITIGNORE #####
##### Lines below automatically generated by Tup.
##### Do not edit.
diff --git a/deploy.sh b/deploy.sh
new file mode 100755
index 0000000..128d334
--- /dev/null
+++ b/deploy.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+shopt -s globstar
+cd $(dirname $0)/root
+rm -rf ../dist
+mkdir ../dist
+cp --parents $(git check-ignore **) ../dist
diff --git a/mmm/mmmfs/browser.moon b/mmm/mmmfs/browser.moon
index 6f0b4b4..43afa2e 100644
--- a/mmm/mmmfs/browser.moon
+++ b/mmm/mmmfs/browser.moon
@@ -72,13 +72,10 @@ class Browser
\append path_segment 'root', ''
while path
- print "splitting #{path}"
name, rest = path\match '^([%w-_%.]+)/(.*)'
if not name
name = path
- print "adding #{name}..."
-
path = rest
href = "#{href}/#{name}"