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/28 11:48:35 UTC

[2/2] sling-site git commit: Fix test script

Fix test 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/10df89aa
Tree: http://git-wip-us.apache.org/repos/asf/sling-site/tree/10df89aa
Diff: http://git-wip-us.apache.org/repos/asf/sling-site/diff/10df89aa

Branch: refs/heads/master
Commit: 10df89aadc4d12e62802116eac55aeaa3a754aef
Parents: da53f42
Author: Bertrand Delacretaz <bd...@apache.org>
Authored: Wed Jun 28 13:47:06 2017 +0200
Committer: Bertrand Delacretaz <bd...@apache.org>
Committed: Wed Jun 28 13:47:06 2017 +0200

----------------------------------------------------------------------
 ARCHIVE/conversion-scripts/open-all-pages.sh | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sling-site/blob/10df89aa/ARCHIVE/conversion-scripts/open-all-pages.sh
----------------------------------------------------------------------
diff --git a/ARCHIVE/conversion-scripts/open-all-pages.sh b/ARCHIVE/conversion-scripts/open-all-pages.sh
index d042b23..6b61c0a 100755
--- a/ARCHIVE/conversion-scripts/open-all-pages.sh
+++ b/ARCHIVE/conversion-scripts/open-all-pages.sh
@@ -1,6 +1,8 @@
+export SRC="src/main/jbake/content"
+export PAT=".*jbake.*content"
 export BASE="http://localhost:8820"
 
-find content -type f | sort | sed 's/\.md$/\.html/' | sed 's/^content//' | while read f
+find $SRC -type f | sort | sed 's/\.md$/\.html/' | sed "s/${PAT}//" | while read f
 do
-	open $BASE$f
-done
\ No newline at end of file
+    open $BASE$f
+done