Commit 124a7468b2c760ca1f4166a5ad90fad05d00bc35

Authored by Antonio Terceiro
1 parent 3a38934e

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

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
script/noosfero-plugins
... ... @@ -177,7 +177,7 @@ _new(){
177 177 mkdir "$target"
178 178  
179 179 plugin_name=$(echo "$plugin" | sed -e 's/^./\u&/; s/_\(.\)/\u\1/g')
180   - for source_file in $(find "$template" -type f); do
  180 + for source_file in $(find "$template" -type f -and '(' -not -name '*.po' -and -not -name '*.mo' ')'); do
181 181 target_file=$(echo "$source_file" | sed -e "s/template/$plugin/g")
182 182 mkdir -p $(dirname "$target_file")
183 183 sed "s/TemplatePlugin/${plugin_name}Plugin/g" "$source_file" > "$target_file"
... ...