123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- file_path=/etc/bash_completion.d/xrnlib-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- echo "source $file_path"
- source $file_path
- fi
- file_path=/etc/bash_completion.d/xrnconv-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- echo "source $file_path"
- source $file_path
- fi
- file_path=/etc/bash_completion.d/xrnarchive-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- echo "source $file_path"
- source $file_path
- fi
- file_path=/etc/bash_completion.d/xrnserver-cli-autocomplete.sh
- if [ -e "$file_path" ]; then
- echo "source $file_path"
- source $file_path
- fi
- file_path1=/usr/lib/xoronos/py/_xrnlib128.so
- file_path2=/usr/lib/xoronos/py/xrnlib128.py
- file_path3=/usr/lib/xoronos/py/_xrnlib256.so
- file_path4=/usr/lib/xoronos/py/xrnlib256.py
- file_path5=/usr/lib/xoronos/py/splitjoin.cpython*
- if [ -e "$file_path1" ] || [ -e "$file_path2" ] || [ -e "$file_path3" ] || [ -e "$file_path4" ] || [ -e "$file_path5" ]; then
- if [[ "$PYTHONPATH" != *"/usr/lib/xoronos/py"* ]] ; then
- if [ "$PYTHONPATH" == "" ] ; then
- cmd="export PYTHONPATH=/usr/lib/xoronos/py"
- echo "$cmd" ; eval "$cmd"
- else
- cmd="export PYTHONPATH=/usr/lib/xoronos/py:$PYTHONPATH"
- echo "$cmd" ; eval "$cmd"
- fi
- fi
- fi
- file_path1=/usr/lib/xoronos/xrnlib-128.so
- file_path2=/usr/lib/xoronos/xrnlib-256.so
- file_path3=/usr/lib/xoronos/xrnlib-128.a
- file_path4=/usr/lib/xoronos/xrnlib-256.a
- if [ -e "$file_path1" ] || [ -e "$file_path2" ] || [ -e "$file_path3" ] || [ -e "$file_path4" ]; then
- if [[ "$LD_LIBRARY_PATH" != *"/usr/lib/xoronos"* ]] ; then
- if [ "$LD_LIBRARY_PATH" == "" ] ; then
- cmd="export LD_LIBRARY_PATH=/usr/lib/xoronos"
- echo "$cmd" ; eval "$cmd"
- else
- cmd="export LD_LIBRARY_PATH=/usr/lib/xoronos:$LD_LIBRARY_PATH"
- echo "$cmd" ; eval "$cmd"
- fi
- fi
- fi
- dir_path=$HOME/.local/xoronos/texmf
- if [ -d "$dir_path" ] ; then
- if [[ "$TEXMFHOME" != *"$HOME/.local/xoronos/texmf"* ]] ; then
- if [ "$TEXMFHOME" == "" ] ; then
- cmd="export TEXMFHOME=$HOME/.local/xoronos/texmf"
- echo "$cmd" ; eval "$cmd"
- export TEXMFHOME
- else
- cmd="export TEXMFHOME=$HOME/.local/xoronos/texmf:$TEXMFHOME"
- echo "$cmd" ; eval "$cmd"
- export TEXMFHOME
- fi
- fi
- fi
|