diff options
author | Petr Mladek <pmladek@suse.cz> | 2012-06-11 18:20:23 +0200 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-06-11 18:24:22 +0200 |
commit | 277b7fd3a483351368604ef2b71fb5ff44801e8b (patch) | |
tree | 6e8340cf8edb8f8f7453b4a1045572f4b318347e /bin | |
parent | 525bd17ff257863226119e310fa69791aeb59d8a (diff) |
new script config_host.mk.source
it allows to source variables from config_host.mk into shell;
there are many different hacks for this on other locations
Use this script in bin/distro-install-*; The original solution
with 'eval' did not work because shell was not able to pass
that many arguments
Change-Id: I3d9eb2fe2d6804a3c7783487e9c70f093edb2ad5
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/distro-install-clean-up | 2 | ||||
-rwxr-xr-x | bin/distro-install-desktop-integration | 2 | ||||
-rwxr-xr-x | bin/distro-install-file-lists | 2 | ||||
-rwxr-xr-x | bin/distro-install-sdk | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/bin/distro-install-clean-up b/bin/distro-install-clean-up index 54dd1f3822ca..170ceb910beb 100755 --- a/bin/distro-install-clean-up +++ b/bin/distro-install-clean-up @@ -1,7 +1,7 @@ #!/bin/sh if test -z "${SRC_ROOT}"; then - eval $(sed -e s/\'/\'\\\\\'\'/g -e 's/=\(.\+\)/='\''\1'\'/ ./config_host.mk) + source ./config_host.mk.source fi if test -z "${SOLARENV}"; then echo "distro-install-clean-up: No environment set!" diff --git a/bin/distro-install-desktop-integration b/bin/distro-install-desktop-integration index c7f58ee3ccd5..3727f83462d7 100755 --- a/bin/distro-install-desktop-integration +++ b/bin/distro-install-desktop-integration @@ -1,7 +1,7 @@ #!/bin/sh if test -z "${SRC_ROOT}"; then - eval $(sed -e s/\'/\'\\\\\'\'/g -e 's/=\(.\+\)/='\''\1'\'/ ./config_host.mk) + source ./config_host.mk.source fi if test -z "${SOLARENV}"; then echo "distro-install-clean-up: No environment set!" diff --git a/bin/distro-install-file-lists b/bin/distro-install-file-lists index de3b859a39b3..98b3d80fd14e 100755 --- a/bin/distro-install-file-lists +++ b/bin/distro-install-file-lists @@ -1,7 +1,7 @@ #!/bin/sh if test -z "${SRC_ROOT}"; then - eval $(sed -e s/\'/\'\\\\\'\'/g -e 's/=\(.\+\)/='\''\1'\'/ ./config_host.mk) + source ./config_host.mk.source fi if test -z "${SOLARENV}"; then echo "distro-install-clean-up: No environment set!" diff --git a/bin/distro-install-sdk b/bin/distro-install-sdk index f1cb6fe39e11..7184f35a32c7 100755 --- a/bin/distro-install-sdk +++ b/bin/distro-install-sdk @@ -1,7 +1,7 @@ #!/bin/sh if test -z "${SRC_ROOT}"; then - eval $(sed -e s/\'/\'\\\\\'\'/g -e 's/=\(.\+\)/='\''\1'\'/ ./config_host.mk) + source ./config_host.mk.source fi if test -z "${SOLARENV}"; then echo "distro-install-clean-up: No environment set!" |