Changeset 10245

Show
Ignore:
Timestamp:
08/14/08 21:17:53 (3 months ago)
Author:
js
Message:

Fully POSIX-compliant shell scripts.

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/launch.sh

    r10237 r10245  
    11#!/bin/sh 
    2 if [[ $0 == /* ]]; then 
    3         BASE=`dirname $0` 
    4 else 
    5         BASE=`pwd`/`dirname $0` 
    6 fi 
    7 OS=`uname -s` 
    8  
    9 if [ "x${OS}" == "xDarwin" ]; then 
    10     export RESOURCEPATH="${BASE}/dist/Gajim.app/Contents/Resources" 
    11     GTK_DIR="/Library/Frameworks/GTK+.framework/Versions/Current" 
    12     export PATH="${GTK_DIR}/bin:$PATH" 
    13     export PYTHONPATH="${GTK_DIR}/lib/python2.5/site-packages:${GTK_DIR}/lib/python2.5/site-packages/gtk-2.0:${PYTHONPATH}" 
    14     unset GTK_DIR 
    15 fi 
    16  
    17 cd ${BASE}/src 
     2cd "$(dirname $0)/src" 
    183exec python -t gajim.py $@ 
  • trunk/scripts/gajim.in

    r10238 r10245  
    2424## GNU General Public License for more details. 
    2525 
    26 if [ `id -u` -eq 0 ]; then 
     26if test $(id -u) -eq 0; then 
    2727        echo "You must not launch Gajim as root, it is INSECURE" 
     28        exit 1 
    2829fi 
    2930 
  • trunk/scripts/gajim-remote.in

    r7563 r10245  
    2525## GNU General Public License for more details. 
    2626 
    27 if [ `id -u` -eq 0 ]; then 
     27if test $(id -u) -eq 0; then 
    2828        echo "You must not launch gajim-remote as root, it is INSECURE" 
     29        exit 1 
    2930fi 
    3031