Description: Don't show insecure modification of PYTHONPATH in documentation
 As detected by #605188 there are few places where the OmniORBpy
 documentation recommends insucure modifying of PYTHONPATH.  This patch
 attempts to fix this.
Forwarded: http://www.omniorb-support.com/pipermail/omniorb-dev/2011-March/000311.html
Author: Floris Bruynooghe <flub@devork.be>
Last-Update: 2011-03-29

Index: python-omniorb/doc/omniORBpy/omniORBpy.html
===================================================================
--- python-omniorb.orig/doc/omniORBpy/omniORBpy.html	2011-03-28 00:01:07.208523001 +0000
+++ python-omniorb/doc/omniORBpy/omniORBpy.html	2011-03-28 00:01:52.878523000 +0000
@@ -124,7 +124,7 @@
 <TT>lib/python</TT> directory contains platform-independent Python code;
 the <TT>lib/</TT><TT>$</TT><TT>FARCH</TT> directory contains
 platform-specific binaries, where <TT>FARCH</TT> is the name of
-your platform, such as <TT>x86_win32</TT>.</P><P>On Unix platforms, set <TT>PYTHONPATH</TT> with a command like:</P><PRE CLASS="verbatim">   export PYTHONPATH=$PYTHONPATH:$TOP/lib/python:$TOP/lib/$FARCH
+your platform, such as <TT>x86_win32</TT>.</P><P>On Unix platforms, set <TT>PYTHONPATH</TT> with a command like:</P><PRE CLASS="verbatim">   export PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}$TOP/lib/python:$TOP/lib/$FARCH
 </PRE><P>On Windows, use</P><PRE CLASS="verbatim">   set PYTHONPATH=%PYTHONPATH%;%TOP%\lib\python;%TOP%\lib\x86_win32
 </PRE><P>(Where the <TT>TOP</TT> environment variable is the root of your
 omniORB tree.)</P><P>You should also add the <TT>bin/</TT><TT>$</TT><TT>FARCH</TT> directory
Index: python-omniorb/doc/omniORBpy/omniORBpy001.html
===================================================================
--- python-omniorb.orig/doc/omniORBpy/omniORBpy001.html	2011-03-28 00:02:10.338523001 +0000
+++ python-omniorb/doc/omniORBpy/omniORBpy001.html	2011-03-28 00:03:13.788523000 +0000
@@ -60,7 +60,7 @@
 <TT>lib/python</TT> directory contains platform-independent Python code;
 the <TT>lib/</TT><TT>$</TT><TT>FARCH</TT> directory contains
 platform-specific binaries, where <TT>FARCH</TT> is the name of
-your platform, such as <TT>x86_win32</TT>.</P><P>On Unix platforms, set <TT>PYTHONPATH</TT> with a command like:</P><PRE CLASS="verbatim">   export PYTHONPATH=$PYTHONPATH:$TOP/lib/python:$TOP/lib/$FARCH
+your platform, such as <TT>x86_win32</TT>.</P><P>On Unix platforms, set <TT>PYTHONPATH</TT> with a command like:</P><PRE CLASS="verbatim">   export PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}$TOP/lib/python:$TOP/lib/$FARCH
 </PRE><P>On Windows, use</P><PRE CLASS="verbatim">   set PYTHONPATH=%PYTHONPATH%;%TOP%\lib\python;%TOP%\lib\x86_win32
 </PRE><P>(Where the <TT>TOP</TT> environment variable is the root of your
 omniORB tree.)</P><P>You should also add the <TT>bin/</TT><TT>$</TT><TT>FARCH</TT> directory
Index: python-omniorb/doc/tex/omniORBpy.tex
===================================================================
--- python-omniorb.orig/doc/tex/omniORBpy.tex	2011-03-28 00:03:27.458523001 +0000
+++ python-omniorb/doc/tex/omniORBpy.tex	2011-03-28 00:04:07.588523000 +0000
@@ -350,7 +350,7 @@
 On Unix platforms, set \envvar{PYTHONPATH} with a command like:
 
 \begin{verbatim}
-   export PYTHONPATH=$PYTHONPATH:$TOP/lib/python:$TOP/lib/$FARCH
+   export PYTHONPATH=${PYTHONPATH:+$PYTHONPATH:}$TOP/lib/python:$TOP/lib/$FARCH
 \end{verbatim}
 
 On Windows, use
