sbsv2/raptor/lib/flm/resource.flm
branchfix
changeset 546 e6381a1f4952
parent 545 17733b82d643
child 547 9fe7d0ab0f8f
equal deleted inserted replaced
545:17733b82d643 546:e6381a1f4952
   116     # The strategy is filter lines which don't have .rsg or .mbg dependencies in them and
   116     # The strategy is filter lines which don't have .rsg or .mbg dependencies in them and
   117     # to sift each line to leave out non-relevant things like other header files, .hrh 
   117     # to sift each line to leave out non-relevant things like other header files, .hrh 
   118     # files etc.  In the end don't print anything at all if we did not find the target.
   118     # files etc.  In the end don't print anything at all if we did not find the target.
   119 
   119 
   120 define  DEPENDENCY_CORRECTOR
   120 define  DEPENDENCY_CORRECTOR
   121 { set +x; $(GNUSED) -rn '\% ([^ /]+)\.((rsg)|(mbg))%I {y%\\\\%\\/%;p;}'  |  \
   121 { $(DEPCRUNCH) --extensions rsg,mbg --assume '$$$$(EPOCROOT)/epoc32/include' ; } 
   122     { \
       
   123     ENDL='\\\\\n'; \
       
   124     DEPTXT="$$$$RPP: $$$${ENDL}" ; \
       
   125     DEPCOUNT=0; \
       
   126     DEPS=''; read L; \
       
   127     while [ $$$$? -eq 0 ]; do \
       
   128         for i in $$$${L}; do \
       
   129           if [[ ( "$$$${i%%.[Rr][Ss][Gg]}" != "$$$$i"  || "$$$${i%%.[Mm][Bb][Gg]}" != "$$$$i" ) && ( "$$$${i:1:1}" != ':' && "$$$${i:0:1}" != '/' ) ]];  then \
       
   130             DEPTXT="$$$$DEPTXT \$$$$(EPOCROOT)/epoc32/include/$$$$i $$$${ENDL}"; \
       
   131             (( DEPCOUNT += 1 )) ; \
       
   132           fi; \
       
   133         done; \
       
   134       read L; \
       
   135     done; \
       
   136     if [ $$$$DEPCOUNT -ne 0 ]; then  \
       
   137       echo -e "$$$${DEPTXT:0:$$$$[ $$$${#DEPTXT} - 4 ]}\n"; fi ;\
       
   138   } ;\
       
   139 } 
       
   140 endef
   122 endef
   141 
   123 
   142 else
   124 else
   143     # This can correct the dependencies by assuming that the file will be in epoc32\include as this is the default
   125     # This can correct the dependencies by assuming that the file will be in epoc32\include as this is the default
   144     DEPENDENCY_CORRECTOR:=$(GNUSED)  -r 's% ([^ \/]+\.((rsg)|(mbg)))% $(EPOCROOT)\/epoc32\/include\/\1%ig' 
   126     DEPENDENCY_CORRECTOR:=$(GNUSED)  -r 's% ([^ \/]+\.((rsg)|(mbg)))% $(EPOCROOT)\/epoc32\/include\/\1%ig'