1#!/bin/sh 2 3# =========================================================================== 4# 5# PUBLIC DOMAIN NOTICE 6# National Center for Biotechnology Information 7# 8# This software/database is a "United States Government Work" under the 9# terms of the United States Copyright Act. It was written as part of 10# the author's official duties as a United States Government employee and 11# thus cannot be copyrighted. This software/database is freely available 12# to the public for use. The National Library of Medicine and the U.S. 13# Government have not placed any restriction on its use or reproduction. 14# 15# Although all reasonable efforts have been taken to ensure the accuracy 16# and reliability of the software and data, the NLM and the U.S. 17# Government do not and cannot warrant the performance or results that 18# may be obtained by using this software or data. The NLM and the U.S. 19# Government disclaim all warranties, express or implied, including 20# warranties of performance, merchantability or fitness for any particular 21# purpose. 22# 23# Please cite the author in any work or product based on this material. 24# 25# =========================================================================== 26 27FILENAME="`basename $0`" 28CURDIR="`dirname $0`" 29 30if [ -z "$CURDIR" ] 31 then 32 echo error: install should be run as ./install 33 exit 1 34fi 35 36if [ "$FILENAME" != install -a ! -s setup/install.perl ] 37 then 38 echo error: install should be run as ./install 39else 40 perl -v > /dev/null 2>&1 || { echo "checking for perl... no"; \ 41 echo >&2 "error: perl not found."; exit 1; } 42 43 cd $CURDIR/setup 44 perl -w ./install.perl "$@" 45fi 46