diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2018-11-09 13:12:41 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2018-11-09 13:14:37 +0000 |
| commit | e14778aa3a7f09dadf6623ade6698730ad79ccb4 (patch) | |
| tree | b21984147c34293fe91e76eef13bfd969b3a7368 | |
| parent | cleanup (diff) | |
| download | mmm-e14778aa3a7f09dadf6623ade6698730ad79ccb4.tar.gz mmm-e14778aa3a7f09dadf6623ade6698730ad79ccb4.zip | |
add deploy script
| -rw-r--r-- | .gitignore | 1 | ||||
| -rwxr-xr-x | deploy.sh | 7 | ||||
| -rw-r--r-- | mmm/mmmfs/browser.moon | 3 |
3 files changed, 8 insertions, 3 deletions
@@ -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}" |
