You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2017/06/27 13:29:05 UTC

[4/7] sling-site git commit: Utility script

Utility script


Project: http://git-wip-us.apache.org/repos/asf/sling-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/sling-site/commit/23767002
Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/23767002
Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/23767002

Branch: refs/heads/master
Commit: 23767002d3042b57ea21be1038502c217ca950cc
Parents: 2b98594
Author: Bertrand Delacretaz <bd...@apache.org>
Authored: Tue Jun 27 14:05:45 2017 +0200
Committer: Bertrand Delacretaz <bd...@apache.org>
Committed: Tue Jun 27 14:05:45 2017 +0200

----------------------------------------------------------------------
 conversion-scripts/open-from-filenames.sh | 6 ++++++
 1 file changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sling-site/blob/23767002/conversion-scripts/open-from-filenames.sh
----------------------------------------------------------------------
diff --git a/conversion-scripts/open-from-filenames.sh b/conversion-scripts/open-from-filenames.sh
new file mode 100755
index 0000000..525687c
--- /dev/null
+++ b/conversion-scripts/open-from-filenames.sh
@@ -0,0 +1,6 @@
+export BASE="http://localhost:8820"
+while read f
+do
+  path=$(echo $f | sed 's/\content\///' | sed 's/md$/html/')
+  open "$BASE/$path"; 
+done