Hilko Bengen
2016-Oct-27 17:09 UTC
[Libguestfs] [PATCH] run.in: Quote contents of @VAR@ substitutions
--- run.in | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/run.in b/run.in index 8fdf454..438a68c 100755 --- a/run.in +++ b/run.in @@ -140,15 +140,15 @@ export PERL_VALGRIND=1 export PERL_DESTRUCT_LEVEL=2 # For Python. -export PYTHON=@PYTHON@ +export PYTHON="@PYTHON@" prepend PYTHONPATH "$b/python/.libs" prepend PYTHONPATH "$b/python" prepend PYTHONPATH "$s/python" export PYTHONPATH # For Ruby. -export RUBY=@RUBY@ -export RAKE=@RAKE@ +export RUBY="@RUBY@" +export RAKE="@RAKE@" prepend RUBYLIB "$b/ruby/ext/guestfs" prepend RUBYLIB "$b/ruby/lib" export RUBYLIB @@ -160,7 +160,7 @@ prepend CAML_LD_LIBRARY_PATH "$b/ocaml" export CAML_LD_LIBRARY_PATH # For Java. -export JAVA_EXE=@JAVA_EXE@ +export JAVA_EXE="@JAVA_EXE@" prepend CLASSPATH "$b/java/libguestfs-@VERSION@.jar" prepend CLASSPATH "$b/java/t" prepend CLASSPATH "$b/java" @@ -171,7 +171,7 @@ prepend ERL_LIBS "$b/erlang" export ERL_LIBS # For Lua. -export LUA=@LUA@ +export LUA="@LUA@" # Can't use 'prepend' here because Lua paths use semicolons. if [ -z "$LUA_CPATH" ]; then LUA_CPATH="$b/lua/?.so" @@ -181,7 +181,7 @@ fi export LUA_CPATH # For golang. -export GOLANG=@GOLANG@ +export GOLANG="@GOLANG@" prepend GOPATH "$b/golang" export GOPATH if [ -z "$CGO_CFLAGS" ]; then @@ -198,7 +198,7 @@ fi export CGO_LDFLAGS # For GObject, Javascript and friends. -export GJS=@GJS@ +export GJS="@GJS@" prepend GI_TYPELIB_PATH "$b/gobject" export GI_TYPELIB_PATH # Be friendly to valgrind (https://live.gnome.org/Valgrind) -- 2.10.1
Richard W.M. Jones
2016-Oct-27 18:55 UTC
Re: [Libguestfs] [PATCH] run.in: Quote contents of @VAR@ substitutions
On Thu, Oct 27, 2016 at 07:09:31PM +0200, Hilko Bengen wrote:> --- > run.in | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > > diff --git a/run.in b/run.in > index 8fdf454..438a68c 100755 > --- a/run.in > +++ b/run.in > @@ -140,15 +140,15 @@ export PERL_VALGRIND=1 > export PERL_DESTRUCT_LEVEL=2 > > # For Python. > -export PYTHON=@PYTHON@ > +export PYTHON="@PYTHON@" > prepend PYTHONPATH "$b/python/.libs" > prepend PYTHONPATH "$b/python" > prepend PYTHONPATH "$s/python" > export PYTHONPATH > > # For Ruby. > -export RUBY=@RUBY@ > -export RAKE=@RAKE@ > +export RUBY="@RUBY@" > +export RAKE="@RAKE@" > prepend RUBYLIB "$b/ruby/ext/guestfs" > prepend RUBYLIB "$b/ruby/lib" > export RUBYLIB > @@ -160,7 +160,7 @@ prepend CAML_LD_LIBRARY_PATH "$b/ocaml" > export CAML_LD_LIBRARY_PATH > > # For Java. > -export JAVA_EXE=@JAVA_EXE@ > +export JAVA_EXE="@JAVA_EXE@" > prepend CLASSPATH "$b/java/libguestfs-@VERSION@.jar" > prepend CLASSPATH "$b/java/t" > prepend CLASSPATH "$b/java" > @@ -171,7 +171,7 @@ prepend ERL_LIBS "$b/erlang" > export ERL_LIBS > > # For Lua. > -export LUA=@LUA@ > +export LUA="@LUA@" > # Can't use 'prepend' here because Lua paths use semicolons. > if [ -z "$LUA_CPATH" ]; then > LUA_CPATH="$b/lua/?.so" > @@ -181,7 +181,7 @@ fi > export LUA_CPATH > > # For golang. > -export GOLANG=@GOLANG@ > +export GOLANG="@GOLANG@" > prepend GOPATH "$b/golang" > export GOPATH > if [ -z "$CGO_CFLAGS" ]; then > @@ -198,7 +198,7 @@ fi > export CGO_LDFLAGS > > # For GObject, Javascript and friends. > -export GJS=@GJS@ > +export GJS="@GJS@" > prepend GI_TYPELIB_PATH "$b/gobject" > export GI_TYPELIB_PATH > # Be friendly to valgrind (https://live.gnome.org/Valgrind)ACK. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Apparently Analagous Threads
- [PATCH] ./run: Use 'prepend' function to build paths.
- [PATCH] run.in: Quote contents of @VAR@ substitutions
- Re: [PATCH] ./run: Use 'prepend' function to build paths.
- [PATCH] configure: Move language binding detection to separate files.
- [PATCH] build: add simple custom silent rules for automake