#! /bin/tcsh -f # {{{ Versioning and license info # # $Id: setup,v 1.13 2006/08/21 15:55:14 proclus Exp $ # Copyright (C) 1999 Robert L. Campbell # Copyright (C) 2006 Michael L. Love # # 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. # # or find it at: http://www.gnu.org/copyleft/gpl.html # # }}} # {{{ Variable definitions setenv BOLD "" setenv UNBOLD "" setenv PRECOLOR "[01;" setenv POSTCOLOR "m" setenv UNCOLOR "" setenv YELLOW "" setenv UNYELLOW "" setenv GREEN "" setenv UNGREEN "" setenv BLUE "" setenv UNBLUE "" setenv CYAN "" setenv UNCYAN "" setenv RED "" setenv UNRED "" setenv VIOLET "" setenv UNVIOLET "" setenv WHITE "" setenv UNWHITE "" # }}} # {{{ Set some basic/general values # determine operating system (architecture) setenv OS `uname -s` setenv OS_VERSION `uname -r` setenv MACHINE `uname -m` if ( -f /etc/debian_version ) then setenv DISTRO Debian else if ( -f /etc/fedora-release ) then setenv DISTRO FedoraCore endif # make some big programs run better! if ( ${OS} != 'Darwin' && ${OS_VERSION} != '7.0.0' ) then unlimit stacksize limit coredumpsize 0 endif # }}} # {{{ Handle arguments #switch ($#argv) #case 0: # {{{ No argument given? # # echo put usage info here # # breaksw # }}} #default: echo Welcome to ${GREEN}my_setup-1.2${UNGREEN} #endsw # }}}