From cb70868bdae30e01323afeb7cc6021a6b10003f0 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Wed, 16 Nov 2011 06:12:09 -0600 Subject: add utility script and build_env to avoid sourcing Env.Host.sh The goal is to able to do partial build without having to source Env.Host.sh into one's environment There is 2 way to use this: 1/ copy the scripts lo_find_src_root and lo_proxy_start somewhere in your PATH, and then you can add alias build='lo_proxy_start build' alias deliver='lo_proxy_start deliver' in your .bashrc at that point you can use build and deliver anywhere in the source tree without the need to source anything. This allow you to switch from one source tree to another. the proper SRC_ROOT will be determined automatically based on the current working directory 2/ source build_env build_env only source the bare minimum to allow build and make to work for the associated source tree. If you want to work in a diffrent tree, you need to resource --- build_env.in | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 build_env.in (limited to 'build_env.in') diff --git a/build_env.in b/build_env.in new file mode 100755 index 000000000000..bf1ace6985dc --- /dev/null +++ b/build_env.in @@ -0,0 +1,11 @@ + +if hash lo_proxy_start 2>&- ; then + base_alias="lo_proxy_start" +else + base_alias="@SRC_ROOT@/solenv/bin/lo_proxy_start" +fi + +alias build="$base_alias build" +alias deliver="$base_alias deliver" + +unset base_alias -- cgit v1.2.3