The autopoint and gettextize host utilities contain hardcoded staging dir paths which need to be overridden for the SDK environment. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 48208master
parent
f301086eca
commit
b809725eb1
@ -0,0 +1,30 @@ |
||||
--- a/gettext-tools/misc/autopoint.in
|
||||
+++ b/gettext-tools/misc/autopoint.in
|
||||
@@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@
|
||||
|
||||
# Set variables
|
||||
# - gettext_datadir directory where the data files are stored.
|
||||
-prefix="@prefix@"
|
||||
+if [ -n "$STAGING_DIR" ]; then
|
||||
+ prefix="$STAGING_DIR/../host"
|
||||
+else
|
||||
+ prefix="@prefix@"
|
||||
+fi
|
||||
datarootdir="@datarootdir@"
|
||||
: ${gettext_datadir="@datadir@/gettext"}
|
||||
: ${AUTOM4TE=autom4te}
|
||||
--- a/gettext-tools/misc/gettextize.in
|
||||
+++ b/gettext-tools/misc/gettextize.in
|
||||
@@ -27,7 +27,11 @@ archive_version=@ARCHIVE_VERSION@
|
||||
|
||||
# Set variables
|
||||
# - gettext_datadir directory where the data files are stored.
|
||||
-prefix="@prefix@"
|
||||
+if [ -n "$STAGING_DIR" ]; then
|
||||
+ prefix="$STAGING_DIR/../host"
|
||||
+else
|
||||
+ prefix="@prefix@"
|
||||
+fi
|
||||
datarootdir="@datarootdir@"
|
||||
: ${gettext_datadir="@datadir@/gettext"}
|
||||
: ${AUTOM4TE=autom4te}
|
Loading…
Reference in new issue