1
0

000-relocatable.patch 710 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/lib/et/compile_et.sh.in
  2. +++ b/lib/et/compile_et.sh.in
  3. @@ -2,8 +2,14 @@
  4. #
  5. #
  6. -AWK=@AWK@
  7. -DIR=@datadir@/et
  8. +if test "x$STAGING_DIR" = x ; then
  9. + AWK=@AWK@
  10. + DIR=@datadir@/et
  11. +else
  12. + AWK=awk
  13. + DIR="$STAGING_DIR/../hostpkg/share/et"
  14. +fi
  15. +
  16. if test "$1" = "--build-tree" ; then
  17. shift;
  18. --- a/lib/ss/mk_cmds.sh.in
  19. +++ b/lib/ss/mk_cmds.sh.in
  20. @@ -2,10 +2,16 @@
  21. #
  22. #
  23. -DIR=@datadir@/ss
  24. -AWK=@AWK@
  25. SED=sed
  26. +if test "x$STAGING_DIR" = x ; then
  27. + DIR=@datadir@/ss
  28. + AWK=@AWK@
  29. +else
  30. + DIR="$STAGING_DIR/../hostpkg/share/ss"
  31. + AWK=awk
  32. +fi
  33. +
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \