sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject [2/6] sling-site git commit: Open pages based on content files
Date Mon, 26 Jun 2017 13:36:38 GMT
Open pages based on content files


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

Branch: refs/heads/master
Commit: 94759daa81067167465ed35acfe648fcea9e47c1
Parents: da2329f
Author: Bertrand Delacretaz <bdelacretaz@apache.org>
Authored: Mon Jun 26 15:11:55 2017 +0200
Committer: Bertrand Delacretaz <bdelacretaz@apache.org>
Committed: Mon Jun 26 15:11:55 2017 +0200

----------------------------------------------------------------------
 conversion-scripts/open-all-pages.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sling-site/blob/94759daa/conversion-scripts/open-all-pages.sh
----------------------------------------------------------------------
diff --git a/conversion-scripts/open-all-pages.sh b/conversion-scripts/open-all-pages.sh
index 42ae8c5..d042b23 100755
--- a/conversion-scripts/open-all-pages.sh
+++ b/conversion-scripts/open-all-pages.sh
@@ -1 +1,6 @@
-curl -s http://sling.apache.org/sitemap.html | grep 'a href' | cut -d'"' -f2 | while read
f; do open http://localhost:8820$f 
\ No newline at end of file
+export BASE="http://localhost:8820"
+
+find content -type f | sort | sed 's/\.md$/\.html/' | sed 's/^content//' | while read f
+do
+	open $BASE$f
+done
\ No newline at end of file


Mime
View raw message