Changeset 23059
- Timestamp:
- 08/06/18 14:38:28 (7 years ago)
- Location:
- issm/trunk-jpl
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/jenkins/jenkins.sh
r23058 r23059 55 55 56 56 #Get changes from jenkins itself (svn requires credentials) 57 svn --non-interactive --no-auth-cache --trust-server-cert diff -r $SVN_PREVIOUS:$SVN_CURRENT --summarize $ISSM_DIR | awk '{print $NF}' > $ISSM_DIR/changes 57 #svn --non-interactive --no-auth-cache --trust-server-cert diff -r $SVN_PREVIOUS:$SVN_CURRENT --summarize $ISSM_DIR | awk '{print $NF}' > $ISSM_DIR/TEMP 58 rm -rf changes 59 wget $SERVER/job/$JOB_NAME/$BUILD_NUMBER/changes > /dev/null 2>&1 60 61 #Process html page and get the list of files that has changed (tricky...) 62 #cat changes | grep '="The file was modified"' | sed -e 's/.*<\/td><td><a>\(.*\)<\/a><\/td><td>.*/\1/' > $ISSM_DIR/TEMP 63 #cat changes | grep 'document_edit' |sed -e 's/document_edit.png/document_edit.png\ 64 #/g' | sed -e 's/.*<\/a><\/td><td>\(.*\)<\/td><\/tr>.*/\1/' | grep -v 'document_edit.png' > $ISSM_DIR/TEMP 65 cat changes | tr " " "\n" | grep trunk | sed -e 's/.*<a>\(.*\)<\/a>.*/\1/' > $ISSM_DIR/TEMP 58 66 59 67 #Print list of files 60 68 echo " " 61 69 echo "List of updated files" 62 cat $ISSM_DIR/ changes70 cat $ISSM_DIR/TEMP 63 71 echo " " 64 72 65 73 #Do we need to reinstall externalpackages? 66 74 echo "Determining installation type" 67 if [ ! -z "$(cat $ISSM_DIR/ changes| grep externalpackages)" ] ; then75 if [ ! -z "$(cat $ISSM_DIR/TEMP | grep externalpackages)" ] ; then 68 76 echo " -- checking for changed externalpackages... yes"; 69 77 ISSM_EXTERNALPACKAGES="yes" … … 74 82 75 83 #Do we need to reconfigure 76 if [ ! -z "$(cat $ISSM_DIR/ changes| grep -e "Makefile.am" -e "m4" )" ] ||84 if [ ! -z "$(cat $ISSM_DIR/TEMP | grep -e "Makefile.am" -e "m4" )" ] || 77 85 [ ! -f "$ISSM_DIR/bin/issm.exe" ] || 78 86 [ "$ISSM_EXTERNALPACKAGES" == "yes" ] ; … … 86 94 87 95 #Do we need to recompile 88 if [ ! -z "$(cat $ISSM_DIR/ changes| grep -e "\.cpp" -e "\.h" )" ] ||96 if [ ! -z "$(cat $ISSM_DIR/TEMP | grep -e "\.cpp" -e "\.h" )" ] || 89 97 [ "$ISSM_RECONFIGURE" == "yes" ] ; 90 98 then -
issm/trunk-jpl/src/c/classes/Elements/Element.cpp
r23058 r23059 1961 1961 void Element::InputDuplicate(int original_enum,int new_enum){/*{{{*/ 1962 1962 1963 if(!IsInput (original_enum)) _error_("Enum "<<EnumToStringx(original_enum)<<" is not in IsInput");1963 if(!IsInputEnum(original_enum)) _error_("Enum "<<EnumToStringx(original_enum)<<" is not in IsInput"); 1964 1964 1965 1965 /*Call inputs method*/ … … 1971 1971 1972 1972 /*Check that name is an element input*/ 1973 if(!IsInput (name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");1973 if(!IsInputEnum(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput"); 1974 1974 1975 1975 /*update input*/ … … 1980 1980 1981 1981 /*Check that name is an element input*/ 1982 if(!IsInput (name)) return;1982 if(!IsInputEnum(name)) return; 1983 1983 1984 1984 /*update input*/ … … 1989 1989 1990 1990 /*Check that name is an element input*/ 1991 if(!IsInput (name)) return;1991 if(!IsInputEnum(name)) return; 1992 1992 1993 1993 /*update input*/ -
issm/trunk-jpl/src/c/classes/Elements/Penta.cpp
r23035 r23059 1154 1154 1155 1155 /*Get out if this is not an element input*/ 1156 if(!IsInput (control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput");1156 if(!IsInputEnum(control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput"); 1157 1157 1158 1158 /*Prepare index list*/ … … 1179 1179 1180 1180 /*Get out if this is not an element input*/ 1181 if(!IsInput (control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput");1181 if(!IsInputEnum(control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput"); 1182 1182 Input* input=(Input*)this->inputs->GetInput(control_enum); _assert_(input); 1183 1183 … … 1661 1661 1662 1662 /*Check that name is an element input*/ 1663 if(!IsInput (name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");1663 if(!IsInputEnum(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput"); 1664 1664 1665 1665 switch(type){ … … 2307 2307 2308 2308 /*Get out if this is not an element input*/ 2309 if(!IsInput (control_enum)) return;2309 if(!IsInputEnum(control_enum)) return; 2310 2310 2311 2311 /*Prepare index list*/ … … 2349 2349 2350 2350 /*Get out if this is not an element input*/ 2351 if(!IsInput (control_enum)) return;2351 if(!IsInputEnum(control_enum)) return; 2352 2352 2353 2353 /*Prepare index list*/ … … 3420 3420 3421 3421 /*Check that name is an element input*/ 3422 if(!IsInput (name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");3422 if(!IsInputEnum(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput"); 3423 3423 3424 3424 switch(type){ … … 3455 3455 3456 3456 /*Check that name is an element input*/ 3457 if(!IsInput (name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");3457 if(!IsInputEnum(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput"); 3458 3458 3459 3459 switch(type){ -
issm/trunk-jpl/src/c/classes/Elements/Tria.cpp
r23053 r23059 1652 1652 1653 1653 /*Get out if this is not an element input*/ 1654 if(!IsInput (control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput");1654 if(!IsInputEnum(control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput"); 1655 1655 1656 1656 /*Prepare index list*/ … … 1675 1675 1676 1676 /*Get out if this is not an element input*/ 1677 if(!IsInput (control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput");1677 if(!IsInputEnum(control_enum)) _error_("Enum "<<EnumToStringx(control_enum)<<" is not in IsInput"); 1678 1678 Input* input=(Input*)this->inputs->GetInput(control_enum); _assert_(input); 1679 1679 … … 2189 2189 2190 2190 /*Check that name is an element input*/ 2191 if(!IsInput (name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");2191 if(!IsInputEnum(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput"); 2192 2192 2193 2193 int numnodes; … … 3297 3297 3298 3298 /*Get out if this is not an element input*/ 3299 if(!IsInput (control_enum)) return;3299 if(!IsInputEnum(control_enum)) return; 3300 3300 3301 3301 Input* input = (Input*)this->inputs->GetInput(control_enum); _assert_(input); … … 3350 3350 3351 3351 /*Get out if this is not an element input*/ 3352 if(!IsInput (control_enum)) return;3352 if(!IsInputEnum(control_enum)) return; 3353 3353 3354 3354 /*hrepare index list*/ … … 5127 5127 5128 5128 /*Check that name is an element input*/ 5129 if(!IsInput (name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");5129 if(!IsInputEnum(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput"); 5130 5130 5131 5131 switch(type){ … … 5162 5162 5163 5163 /*Check that name is an element input*/ 5164 if(!IsInput (name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput");5164 if(!IsInputEnum(name)) _error_("Enum "<<EnumToStringx(name)<<" is not in IsInput"); 5165 5165 5166 5166 switch(type){ -
issm/trunk-jpl/src/c/shared/Enum/Enum.h
r23055 r23059 7 7 void EnumToStringx(char** string,int enum_in); 8 8 int StringToEnumx(const char* string_in,bool notfounderror=true); 9 bool IsInput (int enum_in);10 bool IsParam (int enum_in);9 bool IsInputEnum(int enum_in); 10 bool IsParamEnum(int enum_in); 11 11 12 12 #endif -
issm/trunk-jpl/src/c/shared/Enum/EnumToStringx.cpp
r23057 r23059 1193 1193 } 1194 1194 1195 bool IsInput (int enum_in){1195 bool IsInputEnum(int enum_in){ 1196 1196 if(enum_in>InputsSTARTEnum && enum_in<InputsENDEnum) return true; 1197 1197 return false; 1198 1198 } 1199 1199 1200 bool IsParam (int enum_in){1200 bool IsParamEnum(int enum_in){ 1201 1201 if(enum_in>ParametersSTARTEnum && enum_in<ParametersENDEnum) return true; 1202 1202 return false; -
issm/trunk-jpl/src/c/shared/Enum/Synchronize.sh
r23055 r23059 131 131 } 132 132 133 bool IsInput (int enum_in){133 bool IsInputEnum(int enum_in){ 134 134 if(enum_in>InputsSTARTEnum && enum_in<InputsENDEnum) return true; 135 135 return false; 136 136 } 137 137 138 bool IsParam (int enum_in){138 bool IsParamEnum(int enum_in){ 139 139 if(enum_in>ParametersSTARTEnum && enum_in<ParametersENDEnum) return true; 140 140 return false;
Note:
See TracChangeset
for help on using the changeset viewer.