Peter Centgraf pushed to branch master at cms-community / hippo-cms-l10n-tooling
Commits: 36a9c5ab by Peter Centgraf at 2018-02-23T16:44:54+01:00 CMS-16 Add simple import and cleanup scripts - - - - - 2 changed files: - + scripts/import.sh - + scripts/rm-projects.sh Changes: ===================================== scripts/import.sh ===================================== --- /dev/null +++ b/scripts/import.sh @@ -0,0 +1,39 @@ +#!/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. + +# Usage Instructions: +# +# Unzip the translations to ./import/*.xlsx +# Update release and locales vars as needed +# Run ./import.sh +# Review log output +# If no errors, git commit and push the 2 translation modules + +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 + +modules="hippo-cms-translations hippo-cms-enterprise-translations" + +for module in $modules; do + for locale in $locales; do + filename=../import/${module}_${release}_${locale}.xlsx + mvn -N hippo-cms-l10n:import -Dlocale=$locale -Dfile=$filename -f $module/pom.xml + done +done + ===================================== scripts/rm-projects.sh ===================================== --- /dev/null +++ b/scripts/rm-projects.sh @@ -0,0 +1,18 @@ +#!/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. + +rm -rf hippo-cms-translations +rm -rf hippo-cms-enterprise-translations View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms-l10n-tooling/commit/36a9c5ab57db89fa54f919d29a47cb61f9c81c6c --- View it on GitLab: https://code.onehippo.org/cms-community/hippo-cms-l10n-tooling/commit/36a9c5ab57db89fa54f919d29a47cb61f9c81c6c 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