Arent-Jan Banck pushed to branch master at cms-community / 
hippo-cms-l10n-tooling


Commits:
68d5f93c by Arent-Jan Banck at 2018-02-18T23:43:20+01:00
CMS-16 Add license header and do a small cleanup

- - - - -


1 changed file:

- scripts/export.sh


Changes:

=====================================
scripts/export.sh
=====================================
--- a/scripts/export.sh
+++ b/scripts/export.sh
@@ -1,24 +1,36 @@
 #!/bin/bash
 
+#  Copyright 2018 Hippo B.V. (http://www.onehippo.com)
+#
+#  Licensed under the Apache License, Version 2.0 (the "License");
+#  you may not use this file except in compliance with the License.
+#  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing, software
+#  distributed under the License is distributed on an "AS IS" BASIS,
+#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#  See the License for the specific language governing permissions and
+#  limitations under the License.
+
+locales="nl de fr zh es"
+release="12.2.0"
+
 git clone g...@code.onehippo.org:cms-community/hippo-cms-translations.git
 git clone 
g...@code.onehippo.org:cms-enterprise/hippo-cms-enterprise-translations.git
 git clone g...@code.onehippo.org:cms-community/hippo-cms-l10n-tooling.git
 
-version="12.2.0"
-locales="nl de fr zh es"
-releases="hippo-cms-translations hippo-cms-enterprise-translations"
+modules="hippo-cms-translations hippo-cms-enterprise-translations"
 
 mkdir target
 
-for release in $releases; do
+for module in $modules; do
     for locale in $locales; do
-           filename=target/${release}_${version}_${locale}.xlsx
-           echo xx $filename xx
-        mvn -N hippo-cms-l10n:export -Dlocale=$locale -f $release/pom.xml
-               
-               mv $release/export_$locale.xlsx $filename
-        #mvn -N hippo-cms-l10n:export -Dlocale=$locale -f $enterprise 
translations/pom.xml
+           filename=target/${module}_${release}_${locale}.xlsx
+        mvn -N hippo-cms-l10n:export -Dlocale=$locale -f $module/pom.xml
+               mv $module/export_$locale.xlsx $filename
     done
 done
 
-zip -o -j translation_keys_bloomreach_experience_${version}.zip target/*
+zip -o -j translation_keys_bloomreach_experience_${release}.zip target/*



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-cms-l10n-tooling/commit/68d5f93c8d3cee67b24f3029aeb9d57ddc2db504

---
View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-cms-l10n-tooling/commit/68d5f93c8d3cee67b24f3029aeb9d57ddc2db504
You're receiving this email because of your account on code.onehippo.org.
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to