#!/bin/sh # This script was created by make-mred-launcher # {{{ bindir # Make this PATH-independent saveP="$PATH" PATH="/usr/bin:/bin" # Remember current directory saveD=`pwd` # Find absolute path to this script, # resolving symbolic references to the end # (changes the current directory): D=`dirname "$0"` F=`basename "$0"` cd "$D" while test -L "$F"; do P=`readlink "$F"` D=`dirname "$P"` F=`basename "$P"` cd "$D" done D=`pwd` # Restore current directory cd "$saveD" bindir="$D" PATH="$saveP" # }}} bindir # Find X flags and shift them to the front findxend() { oneargflag='' case "$1" in -display) oneargflag="$1" xa="$2" ;; -geometry) oneargflag="$1" xb="$2" ;; -bg | -background) oneargflag="$1" xc="$2" ;; -fg | -foregound) oneargflag="$1" xd="$2" ;; -font) oneargflag="$1" xe="$2" ;; -name) oneargflag="$1" xf="$2" ;; -selectionTimeout) oneargflag="$1" xg="$2" ;; -title) oneargflag="$1" xh="$2" ;; -xnllanguage) oneargflag="$1" xi="$2" ;; -xrm) oneargflag="$1" xj="$2" ;; -iconic) xk=yes ;; -rv | -reverse) xl=yes ;; +rv) xm=yes ;; -synchronous) xn=yes ;; -singleInstance) xo=yes ;; *) exec "${bindir}/gracketcgc" ${xa+"-display"} ${xa+"$xa"} ${xb+"-geometry"} ${xb+"$xb"} ${xc+"-bg"} ${xc+"$xc"} ${xd+"-fg"} ${xd+"$xd"} ${xe+"-font"} ${xe+"$xe"} ${xf+"-name"} ${xf+"$xf"} ${xg+"-selectionTimeout"} ${xg+"$xg"} ${xh+"-title"} ${xh+"$xh"} ${xi+"-xnllanguage"} ${xi+"$xi"} ${xj+"-xrm"} ${xj+"$xj"} ${xk+"-iconic"} ${xl+"-rv"} ${xm+"+rv"} ${xn+"-synchronous"} ${xo+"-singleInstance"} -N "$0" '-I' 'scheme/gui/init' '-z' ${1+"$@"} ;; esac shift if [ "$oneargflag" != '' ] ; then if [ "${1+n}" != 'n' ] ; then echo $0: missing argument for standard X flag $oneargflag ; exit 1 ; fi shift fi findxend ${1+"$@"} } findxend ${1+"$@"}