noosfero | noosfero-plugins: don't copy translation files to new plugins

Antonio Terceiro gitlab at gitlab.com
Tue Jan 27 14:03:57 BRST 2015


Antonio Terceiro pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>

Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/124a7468b2c760ca1f4166a5ad90fad05d00bc35">124a7468</a> by Antonio Terceiro
noosfero-plugins: don't copy translation files to new plugins

- - - - -


Changes:

=====================================
script/noosfero-plugins
=====================================
--- a/script/noosfero-plugins
+++ b/script/noosfero-plugins
@@ -177,7 +177,7 @@ _new(){
     mkdir "$target"
 
     plugin_name=$(echo "$plugin" | sed -e 's/^./\u&/; s/_\(.\)/\u\1/g')
-    for source_file in $(find "$template" -type f); do
+    for source_file in $(find "$template" -type f -and '(' -not -name '*.po' -and -not -name '*.mo' ')'); do
       target_file=$(echo "$source_file" | sed -e "s/template/$plugin/g")
       mkdir -p $(dirname "$target_file")
       sed "s/TemplatePlugin/${plugin_name}Plugin/g" "$source_file" > "$target_file"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150127/c9ecfe49/attachment-0001.html>


More information about the Noosfero-dev mailing list