Artifact 50f9cbfb3f07ff035b4a6765ec68117eb73767d11d084fa1d1575e63d2a799db:


#! /bin/sh

     ###################################### 
     ##### Model Transformation Tools #####
     ######################################

# Bourne shell script: sympar_txt2h

# Label file to symbolic parameters conversion
# P.J.Gawthrop March 1997
# Copyright (c) P.J.Gawthrop, 1997.

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
# Revision 1.2  1997/03/20  15:14:25  peterg
# Lower case conversion.
#
# Revision 1.1  1997/03/20  14:52:41  peterg
# Initial revision
#
###############################################################



# Inform user
echo "Creating $1_sympar.h"

rm -f mtt_error

#Write some file headers
echo '/*' > $1_sympar.h
echo "Symbolic parameter file ($1_sympar.h)" >> $1_sympar.h
echo "Generated by MTT at `date`"  >> $1_sympar.h
echo '*/' >> $1_sympar.h
echo  >> $1_sympar.h


#Write out the variables in c format.
awk '{i++; print "float", tolower($1) ";"}' $1_sympar.txt  >> $1_sympar.h

# Now invoke the standard error handling.
# mtt_error mtt_error.txt




MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]