diff options
author | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-20 17:11:37 +0000 |
---|---|---|
committer | jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-01-20 17:11:37 +0000 |
commit | 302ddfe4ef9779a864eb0ae7b48425f0c9ebe394 (patch) | |
tree | 9206473dfa67b9e194060fca33f7c89ebef533e5 | |
parent | b8a61e62d5ccebcdcafaffc0661e45797b42f820 (diff) |
[tools] quilt: make relocatable, search resources relative to STAGING_DIR
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29829 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | tools/quilt/patches/000-relocatable.patch | 20 | ||||
-rw-r--r-- | tools/quilt/patches/001-fix_compile.patch (renamed from tools/quilt/patches/000-fix_compile.patch) | 0 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tools/quilt/patches/000-relocatable.patch b/tools/quilt/patches/000-relocatable.patch new file mode 100644 index 000000000..19ff5fd6a --- /dev/null +++ b/tools/quilt/patches/000-relocatable.patch @@ -0,0 +1,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" ] diff --git a/tools/quilt/patches/000-fix_compile.patch b/tools/quilt/patches/001-fix_compile.patch index 51a4f5e20..51a4f5e20 100644 --- a/tools/quilt/patches/000-fix_compile.patch +++ b/tools/quilt/patches/001-fix_compile.patch |