3 @@ -15,14 +15,22 @@ unset POSIXLY_CORRECT
6 export TEXTDOMAIN=quilt
7 -export TEXTDOMAINDIR=@LOCALEDIR@
9 -: ${QUILT_DIR=@QUILT_DIR@}
10 +if test -n "$STAGING_DIR_HOST"; then
11 + export TEXTDOMAINDIR="$STAGING_DIR_HOST/share/locale"
12 + : ${QUILT_DIR=$STAGING_DIR_HOST/share/quilt} ${QUILT_LIB=$STAGING_DIR_HOST/lib/quilt}
13 + : ${QUILT_ETC=$STAGING_DIR_HOST/etc}
15 + export TEXTDOMAINDIR=@LOCALEDIR@
16 + : ${QUILT_DIR=@QUILT_DIR@}
17 + : ${QUILT_ETC=@ETCDIR@}
24 - for QUILTRC in $HOME/.quiltrc @ETCDIR@/quilt.quiltrc; do
25 + for QUILTRC in $HOME/.quiltrc $QUILT_ETC/quilt.quiltrc; do
26 [ -e $QUILTRC ] && break
29 --- a/quilt/scripts/edmail.in
30 +++ b/quilt/scripts/edmail.in
37 # RFCs important for this script:
39 @@ -29,7 +31,7 @@ BEGIN {
42 setlocale(LC_MESSAGES, "");
43 -bindtextdomain("quilt", "@LOCALEDIR@");
44 +bindtextdomain("quilt", $ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/locale' : "@LOCALEDIR@");
48 --- a/quilt/scripts/patchfns.in
49 +++ b/quilt/scripts/patchfns.in
51 # See the COPYING and AUTHORS files for more details.
53 export TEXTDOMAIN=quilt
54 -export TEXTDOMAINDIR=@LOCALEDIR@
55 +if [ -n "$STAGING_DIR_HOST" ]; then
56 + export TEXTDOMAINDIR="$STAGING_DIR_HOST/share/locale"
58 + export TEXTDOMAINDIR=@LOCALEDIR@
62 : ${LC_MESSAGES:=$LANG}
63 --- a/quilt/scripts/remove-trailing-ws.in
64 +++ b/quilt/scripts/remove-trailing-ws.in
71 # Remove trailing whitespace from modified lines in working files.
73 @@ -31,7 +33,7 @@ BEGIN {
76 setlocale(LC_MESSAGES, "");
77 -bindtextdomain("quilt", "@LOCALEDIR@");
78 +bindtextdomain("quilt", $ENV{'STAGING_DIR_HOST'} ? $ENV{'STAGING_DIR_HOST'} . '/share/locale' : "@LOCALEDIR@");
84 @@ -21,8 +21,8 @@ COLUMN := @COLUMN@
90 +PERL := /usr/bin/env perl
91 +BASH := /usr/bin/env bash
92 SHELL:= @BASH@ # It does not work if dash is used as a shell, for example
95 @@ -32,7 +32,7 @@ AWK := @AWK@
100 +PATCH := /usr/bin/env patch
102 MSGMERGE := @MSGMERGE@
104 @@ -49,8 +49,8 @@ USE_NLS := @USE_NLS@
105 STAT_HARDLINK := @STAT_HARDLINK@
106 PATCH_WRAPPER := @PATCH_WRAPPER@
108 -COMPAT_SYMLINKS := @COMPAT_SYMLINKS@
109 -COMPAT_PROGRAMS := @COMPAT_PROGRAMS@
115 --- a/quilt/scripts/backup-files.in
116 +++ b/quilt/scripts/backup-files.in
117 @@ -53,7 +53,12 @@ usage ()
121 -: ${QUILT_DIR=@QUILT_DIR@}
122 +if test -n "$STAGING_DIR_HOST"; then
123 + : ${QUILT_DIR="$STAGING_DIR_HOST/share/quilt"}
125 + : ${QUILT_DIR=@QUILT_DIR@}
128 . $QUILT_DIR/scripts/utilfns
139 # This script is free software; you can redistribute it and/or modify
140 # it under the terms of the GNU General Public License version 2 as
149 # This script is free software; you can redistribute it and/or modify
150 # it under the terms of the GNU General Public License version 2 as
151 --- a/compat/getopt.in
152 +++ b/compat/getopt.in
159 # This script is free software; you can redistribute it and/or modify
160 # it under the terms of the GNU General Public License version 2 as
161 --- a/quilt/scripts/dependency-graph.in
162 +++ b/quilt/scripts/dependency-graph.in
169 # This script is free software; you can redistribute it and/or modify
170 # it under the terms of the GNU General Public License version 2 as