[sushi] launcher: Use shorter syntax for LD_LIBRARY_PATH etc. fiddling



commit 5b85d16e174290042b37f82bfeb1be94d43e77dc
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jan 14 11:23:43 2013 -0500

    launcher: Use shorter syntax for LD_LIBRARY_PATH etc. fiddling
    
    Based on a similar patch by Colin Walters for gnome-documents.

 src/sushi.in |   20 +++-----------------
 1 files changed, 3 insertions(+), 17 deletions(-)
---
diff --git a/src/sushi.in b/src/sushi.in
index 10de9e7..4d5c896 100644
--- a/src/sushi.in
+++ b/src/sushi.in
@@ -1,22 +1,8 @@
 #!/bin/sh
 
-if test x"$GJS_PATH" = x ; then
-    export GJS_PATH= pkgdatadir@/js
-else
-    export GJS_PATH= pkgdatadir@/js:$GJS_PATH
-fi
-
-if test x"$GI_TYPELIB_PATH" = x ; then
-    export GI_TYPELIB_PATH= pkglibdir@/girepository-1.0
-else
-    export GI_TYPELIB_PATH= pkglibdir@/girepository-1.0:$GI_TYPELIB_PATH
-fi
-
-if test x"$LD_LIBRARY_PATH" = x ; then
-    export LD_LIBRARY_PATH= pkglibdir@
-else
-    export LD_LIBRARY_PATH= pkglibdir@:$LD_LIBRARY_PATH
-fi
+export GJS_PATH="@pkgdatadir@/js${GJS_PATH:+:$GJS_PATH}"
+export GI_TYPELIB_PATH="@pkglibdir@/girepository-1.0${GI_TYPELIB_PATH:+:$GI_TYPELIB_PATH}"
+export LD_LIBRARY_PATH="@pkglibdir ${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
 
 if test x"$GJS_DEBUG_OUTPUT" = x ; then
     export GJS_DEBUG_OUTPUT=stderr



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]