398870
#!/bin/sh
398870
# 
398870
# BEGIN COPYRIGHT BLOCK
398870
# This Program is free software; you can redistribute it and/or modify it under
398870
# the terms of the GNU General Public License as published by the Free Software
398870
# Foundation; version 2 of the License.
398870
#
398870
# This Program is distributed in the hope that it will be useful, but WITHOUT
398870
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
398870
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
398870
#
398870
# You should have received a copy of the GNU General Public License along with
398870
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
398870
# Place, Suite 330, Boston, MA 02111-1307 USA.
398870
#
398870
# Copyright (C) 2005 Red Hat, Inc.
398870
# All rights reserved.
398870
# END COPYRIGHT BLOCK
398870
398870
398870
function processArgs {
398870
398870
    for arg in $1
398870
    do
398870
398870
        if [ $arg == "--version" ]
398870
        then
398870
            echo ""
398870
            echo "Smart Card Manager: Version: $VERSION ."
398870
            echo ""
398870
            exit 0
398870
        fi
398870
398870
        if [ $arg == "--help" ]
398870
        then
398870
            echo ""
398870
            echo "Smart Card Manager: GUI tool to manage smart cards."
398870
            echo "Run by selecting from the system menu or by typing , esc  at the terminal."
398870
            echo ""
398870
            exit 0
398870
        fi
398870
398870
    done
398870
}
398870
398870
processArgs $*
398870
398870
398870
ESC_PATH=$LIBDIR/esc-1.1.2
398870
ESC_BIN=esc.js
398870
ESC_EXEC=gjs
398870
398870
export OPENSC_CONF=$ESC_PATH/opensc.esc.conf
398870
export GI_TYPELIB_PATH=$ESC_PATH/lib/girepository-1.0
398870
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ESC_PATH/lib
398870
398870
cd $ESC_PATH
398870
398870
$ESC_EXEC --include-path  $ESC_PATH ./$ESC_BIN &
398870
398870
exit 0
398870
398870
398870