4 # See the COPYING and AUTHORS files for more details.
6 export TEXTDOMAIN=quilt
7 -export TEXTDOMAINDIR=@LOCALEDIR@
9 -: ${QUILT_DIR=@QUILT_DIR@} ${QUILT_LIB=@QUILT_LIB@}
10 +if test -n "$STAGING_DIR"; then
11 + export TEXTDOMAINDIR="$STAGING_DIR/../host/share/locale"
12 + : ${QUILT_DIR=$STAGING_DIR/../host/share/quilt} ${QUILT_LIB=$STAGING_DIR/../host/lib/quilt}
14 + export TEXTDOMAINDIR=@LOCALEDIR@
15 + : ${QUILT_DIR=@QUILT_DIR@} ${QUILT_LIB=@QUILT_LIB@}
18 export QUILT_DIR QUILT_LIB
21 --- a/quilt/scripts/edmail.in
22 +++ b/quilt/scripts/edmail.in
23 @@ -29,7 +29,7 @@ BEGIN {
26 setlocale(LC_MESSAGES, "");
27 -bindtextdomain("quilt", "@LOCALEDIR@");
28 +bindtextdomain("quilt", $ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/locale' : "@LOCALEDIR@");
32 --- a/quilt/scripts/inspect.in
33 +++ b/quilt/scripts/inspect.in
36 # See the COPYING and AUTHORS files for more details.
38 -: ${QUILT_DIR=@QUILT_DIR@}
39 +if test -n "$STAGING_DIR"; then
40 + : ${QUILT_DIR="$STAGING_DIR/../host/share/quilt"}
42 + : ${QUILT_DIR=@QUILT_DIR@}
45 if ! [ -r $QUILT_DIR/scripts/patchfns ]
47 --- a/quilt/scripts/parse-patch.in
48 +++ b/quilt/scripts/parse-patch.in
49 @@ -34,7 +34,7 @@ BEGIN {
52 setlocale(LC_MESSAGES, "");
53 -bindtextdomain("quilt", "@LOCALEDIR@");
54 +bindtextdomain("quilt", $ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/locale' : "@LOCALEDIR@");
58 --- a/quilt/scripts/patchfns.in
59 +++ b/quilt/scripts/patchfns.in
61 # See the COPYING and AUTHORS files for more details.
63 export TEXTDOMAIN=quilt
64 -export TEXTDOMAINDIR=@LOCALEDIR@
65 +if [ -n "$STAGING_DIR" ]; then
66 + export TEXTDOMAINDIR="$STAGING_DIR/../host/share/locale"
68 + export TEXTDOMAINDIR=@LOCALEDIR@
72 : ${LC_MESSAGES:=$LANG}
73 --- a/quilt/scripts/remove-trailing-ws.in
74 +++ b/quilt/scripts/remove-trailing-ws.in
75 @@ -31,7 +31,7 @@ BEGIN {
78 setlocale(LC_MESSAGES, "");
79 -bindtextdomain("quilt", "@LOCALEDIR@");
80 +bindtextdomain("quilt", $ENV{'STAGING_DIR'} ? $ENV{'STAGING_DIR'} . '/../host/share/locale' : "@LOCALEDIR@");