#!/bin/sh # # bibble # # Wrapper script to set shared library path for bibble. (See bibblelabs.com) # This is a better way of dealing with applications than to have their paths # added unconditionally to all users' environments and for all other # applications, especially when done in a bad manner. # Please don't edit /etc/ld.so.conf. Create a file /etc/ld.so.conf.d/bibble.conf # instead, although this may only work on relatively recent Linux systems. # Even better, set LD_LIBRARY_PATH for bibble only, which is what this script # does. # Note: This script will run bibblepro if found, bibblelite otherwise. # http://volker.top.geek.nz/soft/script/bibble # # Copyright (C) by Volker Kuhlmann, http://volker.top.geek.nz/contact.html # All rights reserved. # Released under the terms of the GNU General Public License (GPL) Version 2. # See http://www.gnu.org/ for details. # # Volker Kuhlmann # 18 Apr; 7, 31 May; 21 Jun 2006 # chr0(){ echo @; };chr1(){ echo .; } VERSION="1.2, 21 Jun 2006" AUTHOR="Volker Kuhlmann " COPYRIGHT="Copyright (C) 2006" ### Name of bibble program. bibbleprog=bibblepro type -p $bibbleprog >/dev/null || bibbleprog=bibblelite ### Where bibble has installed its shared libraries. bibblelib=/usr/lib/bibblelabs/$bibbleprog/libs ### Set path and run program # Add shared library directory to shared library path LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH+:}$bibblelib" export LD_LIBRARY_PATH # Run bibble # (Note bibble 4.7 processes no arguments.) exec $bibbleprog "$@" #exec -a bibblepro /usr/bin/bibblepro