mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-26 15:53:55 +02:00
d7f545f983
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29834 3c298f89-4303-0410-b956-a3cf2f4a3e73
84 lines
2.2 KiB
Diff
84 lines
2.2 KiB
Diff
--- 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" ]
|
|
--- a/quilt/scripts/edmail.in
|
|
+++ b/quilt/scripts/edmail.in
|
|
@@ -29,7 +29,7 @@ BEGIN {
|
|
}
|
|
|
|
setlocale(LC_MESSAGES, "");
|
|
-bindtextdomain("quilt", "@LOCALEDIR@");
|
|
+bindtextdomain("quilt", $ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/locale' : "@LOCALEDIR@");
|
|
textdomain("quilt");
|
|
|
|
sub _($) {
|
|
--- a/quilt/scripts/inspect.in
|
|
+++ b/quilt/scripts/inspect.in
|
|
@@ -6,7 +6,11 @@
|
|
#
|
|
# See the COPYING and AUTHORS files for more details.
|
|
|
|
-: ${QUILT_DIR=@QUILT_DIR@}
|
|
+if test -n "$STAGING_DIR"; then
|
|
+ : ${QUILT_DIR="$STAGING_DIR/../host/share/quilt"}
|
|
+else
|
|
+ : ${QUILT_DIR=@QUILT_DIR@}
|
|
+fi
|
|
|
|
if ! [ -r $QUILT_DIR/scripts/patchfns ]
|
|
then
|
|
--- a/quilt/scripts/parse-patch.in
|
|
+++ b/quilt/scripts/parse-patch.in
|
|
@@ -34,7 +34,7 @@ BEGIN {
|
|
}
|
|
|
|
setlocale(LC_MESSAGES, "");
|
|
-bindtextdomain("quilt", "@LOCALEDIR@");
|
|
+bindtextdomain("quilt", $ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/locale' : "@LOCALEDIR@");
|
|
textdomain("quilt");
|
|
|
|
sub _($) {
|
|
--- a/quilt/scripts/patchfns.in
|
|
+++ b/quilt/scripts/patchfns.in
|
|
@@ -10,7 +10,11 @@
|
|
# See the COPYING and AUTHORS files for more details.
|
|
|
|
export TEXTDOMAIN=quilt
|
|
-export TEXTDOMAINDIR=@LOCALEDIR@
|
|
+if [ -n "$STAGING_DIR" ]; then
|
|
+ export TEXTDOMAINDIR="$STAGING_DIR/../host/share/locale"
|
|
+else
|
|
+ export TEXTDOMAINDIR=@LOCALEDIR@
|
|
+fi
|
|
|
|
: ${LC_CTYPE:=$LANG}
|
|
: ${LC_MESSAGES:=$LANG}
|
|
--- a/quilt/scripts/remove-trailing-ws.in
|
|
+++ b/quilt/scripts/remove-trailing-ws.in
|
|
@@ -31,7 +31,7 @@ BEGIN {
|
|
}
|
|
|
|
setlocale(LC_MESSAGES, "");
|
|
-bindtextdomain("quilt", "@LOCALEDIR@");
|
|
+bindtextdomain("quilt", $ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/locale' : "@LOCALEDIR@");
|
|
textdomain("quilt");
|
|
|
|
sub _($) {
|