summaryrefslogtreecommitdiff
path: root/math/gh-bc/files/patch-locale__install.sh
blob: 1c55c5f99c37dbfb5adf1510cfc732fa9e1355fd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
--- locale_install.sh.orig	2019-11-09 19:04:17 UTC
+++ locale_install.sh
@@ -193,6 +193,7 @@ for file in $locales_dir/*.msg; do
 		continue
 	fi
 
+	echo gencatfile "$loc" "$file"
 	gencatfile "$loc" "$file"
 
 done
@@ -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 -fs "$rel" "$loc"
+		echo ln "$linksrc" "$loc"
+		ln "$linksrc" "$loc"
 	fi
 
 done