Changeset 19770


Ignore:
Timestamp:
11/20/15 10:11:43 (9 years ago)
Author:
Eric.Larour
Message:

CHG: added javascript EnumDefinition.js generation capability.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh

    r19530 r19770  
    196196#core
    197197cat temp |  awk '{print "def " $1"(): return StringToEnum(\"" substr($1,1,length($1)-4) "\")[0]"}' >> $ISSM_DIR/src/m/enum/EnumDefinitions.py
     198#}}}
     199
     200#Deal with Javascript Enums
     201#Build EnumDefinitions.js{{{
     202cat <<END > $ISSM_DIR/src/m/enum/EnumDefinitions.js
     203//WARNING: DO NOT MODIFY THIS FILE
     204//this file has been automatically generated by src/c/shared/Enum/Synchronize.sh
     205//Please read src/c/shared/Enum/README for more information
     206END
     207#core
     208cat temp |  awk '{print "function " $1"(){ return StringToEnum(\"" substr($1,1,length($1)-4) "\");\}"}' >> $ISSM_DIR/src/m/enum/EnumDefinitions.js
    198209#}}}
    199210
Note: See TracChangeset for help on using the changeset viewer.