#! /bin/sh ############################################################################## # # Yoshinori OKUJI # # Copyright (C) 2003,2004 Nexedi SARL # # This program is Free Software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ?See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ?02111-1307, USA. # ############################################################################## dir=`dirname $0` cd $dir # This prevent urpmi from complaining about missing perl locales. export PERL_BADLANG=0 # First, try to find umibuilder.py in the same directory as this file. # If it fails, find it in the standard installation directory. # This should be intuitive. if test -f ./umibuilder.py; then script=./umibuilder.py elif test -f /usr/lib/umigumi/umibuilder.py; then script=/usr/lib/umigumi/umibuilder.py else echo umibuilder: umibuilder.py not found. 1>&2 exit 1 fi exec python $script $*