Index: mttroot/mtt/bin/trans/lang_header ================================================================== --- mttroot/mtt/bin/trans/lang_header +++ mttroot/mtt/bin/trans/lang_header @@ -6,10 +6,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.8 1999/02/16 04:14:53 peterg +## Small change to modeline generation +## ## Revision 1.7 1999/01/20 22:19:21 peterg ## Puts emacs mode line at top of .m files ## ## Revision 1.6 1998/07/27 20:30:39 peterg ## Mods for dm rep - no globals ... @@ -29,10 +32,22 @@ ## Revision 1.1 1998/05/23 16:17:40 peterg ## Initial revision ## ############################################################### +# Args +while [ -n "`echo $1 | grep '^-'`" ]; do + case $1 in + -noglobal) + noglobal=noglobal; + ;; + *) + echo $1 is an unknown option + exit;; + esac + shift +done # Set up the language specific stuff system=$1 rep=$2 language=$3 @@ -40,11 +55,11 @@ output=$5 extras=$6 case $language in m) - modeline='% -*-octave-*- Put Emacs into octave-mode'; + modeline='% -*-octave-*- Put Emacs into octave-mode%'; ext='m'; Lc='#'; Rc='#'; Lb='('; Rb=')'; @@ -158,11 +173,13 @@ $extras EOF fi # Globals -sympar2global_txt2lang $1 $language +if [ -z "$noglobal" ]; then + sympar2global_txt2lang $1 $language +fi ## if [ "$language" = "c" ] || [ "$language" = "m" ]; then ## if [ "$rep" != "sm" ]&&[ "$rep" != "dm" ]&&[ "$rep" != "switch" ]; then ## # Common part - ode (c and m) ## # Use octave for this bit - needs the definition file