From: Peter Eisentraut Date: Mon, 28 Aug 2017 14:35:58 +0000 (-0400) Subject: cp-po: Better support for symlinked directories X-Git-Url: http://git.postgresql.org/gitweb/static/%7B%7Bpgdulink%28?a=commitdiff_plain;h=09909fb3547a6f72a59e22b184a52169f6a185cd;p=pgtranslation%2Fadmin.git cp-po: Better support for symlinked directories --- diff --git a/cp-po b/cp-po index 3b129d5..ac54b34 100755 --- a/cp-po +++ b/cp-po @@ -85,9 +85,9 @@ if $git_mode; then export GIT_DIR fi -nls_mks=$(find "$destdir" -name nls.mk) +nls_mks=$(find -H "$destdir" -name nls.mk) -for srcfile in $(find "$srcdir" -name '*.po'); do +for srcfile in $(find -H "$srcdir" -name '*.po'); do base=$(echo X"$srcfile" | sed "s,^X$srcdir/*,,") lang=$(expr $base : '\([a-z][a-zA-Z_]*\)') srccat=$(expr $base : '.*/\([^/]*\)\.po$')