diff options
Diffstat (limited to 'math/gh-bc/files/patch-locale__install.sh')
-rw-r--r-- | math/gh-bc/files/patch-locale__install.sh | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/math/gh-bc/files/patch-locale__install.sh b/math/gh-bc/files/patch-locale__install.sh index 44bcfd8df43e..1c55c5f99c37 100644 --- a/math/gh-bc/files/patch-locale__install.sh +++ b/math/gh-bc/files/patch-locale__install.sh @@ -1,6 +1,6 @@ ---- locale_install.sh.orig 2019-05-29 01:32:06 UTC +--- locale_install.sh.orig 2019-11-09 19:04:17 UTC +++ locale_install.sh -@@ -114,6 +114,7 @@ for file in $locales_dir/*.msg; do +@@ -193,6 +193,7 @@ for file in $locales_dir/*.msg; do continue fi @@ -8,11 +8,18 @@ gencatfile "$loc" "$file" done -@@ -143,7 +144,8 @@ for file in $locales_dir/*.msg; do +@@ -217,14 +218,13 @@ for file in $locales_dir/*.msg; do + linkdir=$(dirname "$file") + locale=$(basename "$link" .msg) + linksrc=$(gen_nlspath "$nlspath" "$locale" "$main_exec") +- relloc="${loc##$destdir/}" +- rel=$(relpath "$linksrc" "$relloc") + + if [ ! -f "$destdir/$linksrc" ]; then gencatfile "$destdir/$linksrc" "$linkdir/$link" fi -- ln -s "$linksrc" "$loc" +- ln -fs "$rel" "$loc" + echo ln "$linksrc" "$loc" + ln "$linksrc" "$loc" fi |