From 124a7468b2c760ca1f4166a5ad90fad05d00bc35 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 27 Jan 2015 14:02:51 -0200 Subject: [PATCH] noosfero-plugins: don't copy translation files to new plugins --- script/noosfero-plugins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/noosfero-plugins b/script/noosfero-plugins index 79a2824..5a3e4c6 100755 --- 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" -- libgit2 0.21.2