myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject [myfaces-tobago] 02/03: fix: "; " wasn't replaced with " " in columns/rows new: replace "fixed" with "auto"
Date Wed, 07 Feb 2018 10:14:09 GMT
This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit 46cf07b2b02f7697e4dc3b91c6265298f5f8a36b
Author: Udo Schnurpfeil <lofwyr@apache.org>
AuthorDate: Wed Feb 7 10:58:51 2018 +0100

    fix: ";" wasn't replaced with " " in columns/rows
    new: replace "fixed" with "auto"
---
 .../50-migration/96-migration/migrate4-layout.sh       | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/50-migration/96-migration/migrate4-layout.sh
b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/50-migration/96-migration/migrate4-layout.sh
index f5c88f0..51181d4 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/50-migration/96-migration/migrate4-layout.sh
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/50-migration/96-migration/migrate4-layout.sh
@@ -25,6 +25,14 @@ function replace_columns_rows_one {
  sed -i "" -E "s/(columns|rows)=\"([^\"]*)\*/\1=\"\21fr/g" $1
 }
 
+function replace_columns_rows_fixed {
+ sed -i "" -E "s/(columns|rows)=\"([^\"]*)fixed/\1=\"\2auto/g" $1
+}
+
+function replace_columns_rows_semicolon {
+ sed -i "" -E "s/(columns|rows)=\"([^\"]*);/\1=\"\2 /g" $1
+}
+
 find . -name "*.xhtml" | while read file; do
 
   echo "Processing file $file"
@@ -46,6 +54,16 @@ find . -name "*.xhtml" | while read file; do
     replace_columns_rows_one $file
   done
 
+  for i in `seq 1 20`;
+  do
+    replace_columns_rows_fixed $file
+  done
+
+  for i in `seq 1 40`;
+  do
+    replace_columns_rows_semicolon $file
+  done
+
   # Windows only
   # unix2dos -q $file
 

-- 
To stop receiving notification emails like this one, please contact
lofwyr@apache.org.

Mime
View raw message