summaryrefslogtreecommitdiff
path: root/tools/quilt/patches/000-relocatable.patch
blob: 19ff5fd6adc857a7559b4df332ed146aaffcfd68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/bin/quilt.in
+++ b/bin/quilt.in
@@ -7,9 +7,15 @@
 #  See the COPYING and AUTHORS files for more details.
 
 export TEXTDOMAIN=quilt
-export TEXTDOMAINDIR=@LOCALEDIR@
 
-: ${QUILT_DIR=@QUILT_DIR@} ${QUILT_LIB=@QUILT_LIB@}
+if test -n "$STAGING_DIR"; then
+	export TEXTDOMAINDIR="$STAGING_DIR/../host/share/locale"
+	: ${QUILT_DIR=$STAGING_DIR/../host/share/quilt} ${QUILT_LIB=$STAGING_DIR/../host/lib/quilt}
+else
+	export TEXTDOMAINDIR=@LOCALEDIR@
+	: ${QUILT_DIR=@QUILT_DIR@} ${QUILT_LIB=@QUILT_LIB@}
+fi
+
 export QUILT_DIR QUILT_LIB
 
 if [ -z "$QUILTRC" ]