Changeset 3690
- Timestamp:
- Oct 26, 2019, 7:08:59 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/netlabs/macros/recompile.e ¶
r3680 r3690 676 676 KeyPathEFileChecks = KeyPath'\EFileChecks' -- EFileChecks = fDifferent;... 677 677 678 SavedEFiles = QueryConfigKey( KeyPathEFiles) 679 SavedEFileTimes = QueryConfigKey( KeyPathEFileTimes) 680 SavedEFileChecks = QueryConfigKey( KeyPathEFileChecks) 681 682 -------------------------------- 678 683 -- 1) Check if .E file exists 679 684 do once1 = 1 to 1 … … 690 695 enddo -- once1 691 696 697 -------------------------------- 692 698 -- 2) Compare current .EX file with Netlabs .EX file and delete it if equal 693 699 do once2 = 1 to 1 … … 770 776 if fCurExFileWasLinked >= 0 then 771 777 -- unlink works only if EX file exists 772 ' unlink' CurExFile778 'Unlink' CurExFile 773 779 fRelinkUnlinked = 1 774 780 endif … … 798 804 if fCurExFileWasLinked >= 0 | fRelinkUnlinked then -- < 0 means error or not linked 799 805 if not fRelinkUnlinked then -- maybe already unlinked 800 ' unlink' CurExFile806 'Unlink' CurExFile 801 807 if rc then 802 808 cError = cError + 1 … … 804 810 endif 805 811 endif 806 ' link' BaseName812 'Link' BaseName 807 813 if rc >= 0 then 808 814 cRelink = cRelink + 1 … … 826 832 WriteBasenameLog( LogFile, Basename, fHeaderWritten, ' is older than and different from Netlabs .EX file') 827 833 elseif CurExFileTime > NetlabsExFileTime then 828 cWarning = cWarning + 1829 834 WriteBasenameLog( LogFile, Basename, fHeaderWritten, 'I current .EX file "'CurExFile'"') 830 835 WriteBasenameLog( LogFile, Basename, fHeaderWritten, ' is newer than and different from Netlabs .EX file') … … 834 839 enddo -- once2 835 840 841 -------------------------------- 836 842 -- 3) Compare current .EX file with myepm .EX file if Netlabs .EX file doesn't exist 837 843 do once3 = 1 to 1 … … 840 846 endif 841 847 842 -- Ensure that Netlabs .EX file doesn't exist s848 -- Ensure that Netlabs .EX file doesn't exist 843 849 NetlabsExFile = NepmdRootDir'\netlabs\ex\'BaseName'.ex' 844 850 if Exist( NetlabsExFile) then … … 861 867 CurExFileTime = NepmdQueryPathInfo( CurExFile, 'MTIME') 862 868 if not rc then 863 next= QueryConfigKey( KeyPathTime)864 if next<> CurExFileTime then869 SavedExFileTime = QueryConfigKey( KeyPathTime) 870 if SavedExFileTime <> CurExFileTime then 865 871 fCompExFile = 1 866 872 endif … … 869 875 enddo -- once3 870 876 877 -------------------------------- 871 878 -- 4) Check .E files and compare current .E files with Netlabs .E files or with last check 872 879 do once4 = 1 to 1 … … 878 885 leave 879 886 endif 880 881 -- Get list of EFiles from NEPMD.INI882 SavedEFiles = QueryConfigKey( KeyPathEFiles)883 -- Get list of times for EFiles from NEPMD.INI884 SavedEFileTimes = QueryConfigKey( KeyPathEFileTimes)885 -- Get list of check results for EFiles from NEPMD.INI886 SavedEFileChecks = QueryConfigKey( KeyPathEFileChecks)887 887 888 888 if SavedEFiles = '' then … … 925 925 -- Get full pathname 926 926 FullEFile = NepmdSearchPath( EFile, 'EPMMACROPATH') 927 928 927 if FullEFile = '' then 929 928 -- EFile doesn't exist … … 1004 1003 enddo -- once4 1005 1004 1005 -------------------------------- 1006 1006 -- 5) Run Etpm and compare compiled .E files with Netlabs .E files 1007 1007 do once5 = 1 to 1 … … 1039 1039 endif 1040 1040 1041 -- Check E files here (after etpm) if not already done in 4) 1042 fEFilesDone = (NewEFiles <> '') 1043 1041 1044 NewEFiles = GetEtpmFilesFromLog( EtpmLogFile) 1042 SavedEFiles = QueryConfigKey( KeyPathEFiles)1043 SavedEFileTimes = QueryConfigKey( KeyPathEFileTimes)1044 SavedEFileChecks = QueryConfigKey( KeyPathEFileChecks)1045 1045 erest = NewEFiles 1046 1046 frest = SavedEFiles … … 1050 1050 NewEFileChecks = '' 1051 1051 do while erest <> '' 1052 -- Already processed, no need to check them here again 1053 if fEFilesDone then 1054 leave 1055 endif 1056 1052 1057 -- For every EFile... 1053 1058 parse value erest with EFile';'erest 1054 /**/1055 -- Check E files here (after etpm) if not already done above1056 if SavedEFiles <> '' then1057 iterate1058 endif1059 /**/1060 1059 parse value frest with SavedEFile';'frest 1061 1060 if EFile = SavedEFile then … … 1140 1139 enddo -- once5 1141 1140 1141 -------------------------------- 1142 1142 -- 6) Compare .EX files 1143 1143 do once6 = 1 to 1 … … 1196 1196 1197 1197 elseif next = 0 then -- equal 1198 /**/ 1198 1199 WriteBasenameLog( LogFile, Basename, fHeaderWritten, 'I .EX file "'ExFile'"') 1199 1200 WriteBasenameLog( LogFile, Basename, fHeaderWritten, ' is equal to current .EX file') 1200 1201 /**/ 1201 1202 else -- error 1202 1203 cError = cError + 1 … … 1206 1207 enddo -- once6 1207 1208 1209 -------------------------------- 1208 1210 -- Don't unlink, delete or copy if Checkonly is active 1209 1211 if fReplaceExFile = 1 & not fCheckOnly then … … 1300 1302 endif 1301 1303 endif 1302 if NewEFiles <> '' then1304 if NewEFiles <> '' & NewEFileTimes <> '' & NewEFileChecks <> '' then 1303 1305 DeleteConfigKey( KeyPathEFiles) 1304 1306 DeleteConfigKey( KeyPathEFileTimes)
Note:
See TracChangeset
for help on using the changeset viewer.