mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
47 lines
837 B
Diff
47 lines
837 B
Diff
|
--- a/lib/et/compile_et.sh.in
|
||
|
+++ b/lib/et/compile_et.sh.in
|
||
|
@@ -2,9 +2,15 @@
|
||
|
#
|
||
|
#
|
||
|
|
||
|
-datarootdir=@datarootdir@
|
||
|
-AWK=@AWK@
|
||
|
-DIR=@datadir@/et
|
||
|
+if test "x$STAGING_DIR" = x ; then
|
||
|
+ datarootdir=@datarootdir@
|
||
|
+ AWK=@AWK@
|
||
|
+ DIR=@datadir@/et
|
||
|
+else
|
||
|
+ datarootdir="$STAGING_DIR/../hostpkg/share"
|
||
|
+ AWK=awk
|
||
|
+ DIR="$datarootdir/et"
|
||
|
+fi
|
||
|
|
||
|
if test "$1" = "--build-tree" ; then
|
||
|
shift;
|
||
|
--- a/lib/ss/mk_cmds.sh.in
|
||
|
+++ b/lib/ss/mk_cmds.sh.in
|
||
|
@@ -1,11 +1,17 @@
|
||
|
#!/bin/sh
|
||
|
#
|
||
|
#
|
||
|
-
|
||
|
-datarootdir=@datarootdir@
|
||
|
-DIR=@datadir@/ss
|
||
|
-AWK=@AWK@
|
||
|
-SED=@SED@
|
||
|
+if test "x$STAGING_DIR" = x ; then
|
||
|
+ datarootdir=@datarootdir@
|
||
|
+ DIR=@datadir@/ss
|
||
|
+ AWK=@AWK@
|
||
|
+ SED=@SED@
|
||
|
+else
|
||
|
+ datarootdir="$STAGING_DIR/../hostpkg/share"
|
||
|
+ DIR="$datarootdir/ss"
|
||
|
+ AWK=awk
|
||
|
+ SED=sed
|
||
|
+fi
|
||
|
|
||
|
for as_var in \
|
||
|
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|