summaryrefslogtreecommitdiff
path: root/config_host.mk.source
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.cz>2012-06-11 18:20:23 +0200
committerPetr Mladek <pmladek@suse.cz>2012-06-11 18:24:22 +0200
commit277b7fd3a483351368604ef2b71fb5ff44801e8b (patch)
tree6e8340cf8edb8f8f7453b4a1045572f4b318347e /config_host.mk.source
parent525bd17ff257863226119e310fa69791aeb59d8a (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 'config_host.mk.source')
-rw-r--r--config_host.mk.source10
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