Blame SOURCES/esc

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