You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by ad...@apache.org on 2017/11/02 11:33:22 UTC

[18/26] wicket git commit: Added migration script

Added migration script


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

Branch: refs/heads/WICKET-6490
Commit: f7688bff9a93fa04c4fb70ac50474ec92448b9a3
Parents: 1d33929
Author: Andrea Del Bene <ad...@apache.org>
Authored: Mon Oct 30 16:46:09 2017 +0100
Committer: Andrea Del Bene <ad...@apache.org>
Committed: Mon Oct 30 16:46:09 2017 +0100

----------------------------------------------------------------------
 wicket-examples/replace.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/f7688bff/wicket-examples/replace.sh
----------------------------------------------------------------------
diff --git a/wicket-examples/replace.sh b/wicket-examples/replace.sh
index 910cdda..946046b 100644
--- a/wicket-examples/replace.sh
+++ b/wicket-examples/replace.sh
@@ -1,4 +1,4 @@
 #!/bin/bash
-for fl in $*; do
-  echo $fl;
+grep -r -H -l --include=*.html "<span wicket:id=\"mainNavigation\"/>"  . | while read line; do
+   cat $line | sed -e 's/<span wicket:id=\"mainNavigation\"/>/<wicket:extend>/g' | sed -e 's/<\/body>/<\/body>\n<\/wicket:extend>/g' >> tmpfile ; mv tmpfile $line
 done