Skip to content
Snippets Groups Projects
Commit caa9e0e0 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

quilt: make relocatable, search resources relative to STAGING_DIR

SVN-Revision: 29829
parent 122069ca
No related branches found
No related tags found
No related merge requests found
--- 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" ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment