projects
/
pgtranslation
/
admin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc93fa9
)
cp-po: Fix delete mode
author
Peter Eisentraut
<
[email protected]
>
Thu, 6 Sep 2012 04:50:45 +0000
(
00:50
-0400)
committer
Peter Eisentraut
<
[email protected]
>
Thu, 6 Sep 2012 04:50:45 +0000
(
00:50
-0400)
cp-po
patch
|
blob
|
blame
|
history
diff --git
a/cp-po
b/cp-po
index 499bc4cf1a6a38b138b61737c3ab8c284c38ef8c..25627ae2b971b29f774395933d73717b9c2093d9 100755
(executable)
--- a/
cp-po
+++ b/
cp-po
@@
-144,12
+144,13
@@
if $delete && [ -n "$qualfile" ]; then
for lang in $destlang; do
if ! grep -q -F "$destcat/$lang" "$qualfile"; then
if $run && $update_target_tree; then
- rm $targetdir/po/$lang.po
if $git_mode; then
- git rm -q $targetdir/po/$lang.po
+ (cd $targetdir && git rm -q --ignore-unmatch $lang.po)
+ else
+ rm -f $targetdir/$lang.po
fi
else
- echo "should DELETE unqualified: $targetdir/
po/
$lang.po" 1>&2
+ echo "should DELETE unqualified: $targetdir/$lang.po" 1>&2
fi
fi
done