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 /config_host.mk.source | |
parent | correctly set icon names in desktop files (diff) | |
download | core-277b7fd3a483351368604ef2b71fb5ff44801e8b.tar.gz core-277b7fd3a483351368604ef2b71fb5ff44801e8b.zip |
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 'config_host.mk.source')
-rw-r--r-- | config_host.mk.source | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config_host.mk.source b/config_host.mk.source new file mode 100644 index 000000000000..042ffa2589be --- /dev/null +++ b/config_host.mk.source @@ -0,0 +1,10 @@ +# this script allows to correctly source config_host.mk into existing shell +# +# Usage: +# +# source ./config_host.mk.source + +temp_conf=`mktemp config_host.mk.XXXXXX` +sed -e 's/^\s*\(export [A-Z0-9_]*=\)\(.*\)$/\1"\2"/' config_host.mk >$temp_conf +source $temp_conf +rm $temp_conf |