sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject [2/2] sling-site git commit: Fix test script
Date Wed, 28 Jun 2017 11:48:35 GMT
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 <bdelacretaz@apache.org>
Authored: Wed Jun 28 13:47:06 2017 +0200
Committer: Bertrand Delacretaz <bdelacretaz@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


Mime
View raw message