Changeset 1645
- Timestamp:
- 08/11/09 14:22:50 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/EnumDefinitions/SynchronizeMatlabEnum.sh
r1642 r1645 17 17 % Usage: 18 18 % string=AnalysisTypeAsEnum(enum) 19 20 %initialize output 21 string='not found'; 22 19 23 END 20 24 … … 35 39 %$(echo `echo $NAME | sed -e "s/[a-z]/\U&/g"`) - Enum of $(echo `echo $NAME | sed -e "s/Enum//"`) 36 40 % 37 % file generated by src/c/SynchronizeMatlabEnum 38 % to be synchronized with the corresponding C Enum 39 % located in src/c/EnumDefinitions 41 % file generated by src/c/EnumDefinitions/SynchronizeMatlabEnum 40 42 % 41 43 % Usage: … … 58 60 done 59 61 62 #end of AnalysisTypeAsEnum 63 cat <<END >> AnalysisTypeAsEnum.m 64 65 %check that an analysis type has been found for enum 66 if strcmp(string,'not found'), 67 error(['AnalysisTypeAsEnum error message: enum ' num2str(enum) ' not supported!']); 68 end 69 END 70 60 71 #clean up 61 72 mv AnalysisTypeAsEnum.m $ISSM_DIR/src/m/shared/
Note:
See TracChangeset
for help on using the changeset viewer.