sbsv2/raptor/lib/flm/resource.flm
branchfix
changeset 545 17733b82d643
parent 543 61f929e4229d
child 546 e6381a1f4952
equal deleted inserted replaced
544:a1da2914e57f 545:17733b82d643
   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 { set +x; $(GNUSED) -rn '\% ([^ /]+)\.((rsg)|(mbg))%I {y%\\\\%\\/%;p;}'  |  \
   122     { \
   122     { \
   123     DEPTXT="$$$$RPP: \\\\\n"; \
   123     ENDL='\\\\\n'; \
       
   124     DEPTXT="$$$$RPP: $$$${ENDL}" ; \
   124     DEPCOUNT=0; \
   125     DEPCOUNT=0; \
   125     DEPS=''; read L; \
   126     DEPS=''; read L; \
   126     while [ $$$$? -eq 0 ]; do \
   127     while [ $$$$? -eq 0 ]; do \
   127         for i in $$$${L}; do \
   128         for i in $$$${L}; do \
   128           if [[ ( "$$$${i%%.[Rr][Ss][Gg]}" != "$$$$i"  || "$$$${i%%.[Mm][Bb][Gg]}" != "$$$$i" ) && ( "$$$${i:1:1}" != ':' && "$$$${i:0:1}" != '/' ) ]];  then \
   129           if [[ ( "$$$${i%%.[Rr][Ss][Gg]}" != "$$$$i"  || "$$$${i%%.[Mm][Bb][Gg]}" != "$$$$i" ) && ( "$$$${i:1:1}" != ':' && "$$$${i:0:1}" != '/' ) ]];  then \
   129             DEPTXT="$$$$DEPTXT \$$$$(EPOCROOT)/epoc32/include/$$$$i \\\\\n"; \
   130             DEPTXT="$$$$DEPTXT \$$$$(EPOCROOT)/epoc32/include/$$$$i $$$${ENDL}"; \
   130             (( DEPCOUNT += 1 )) ; \
   131             (( DEPCOUNT += 1 )) ; \
   131           fi; \
   132           fi; \
   132         done; \
   133         done; \
   133       read L; \
   134       read L; \
   134     done; \
   135     done; \
   135     if [ $$$$DEPCOUNT -ne 0 ]; then  echo -e "$$$${DEPTXT%%\\\\\\n}\n"; fi ;\
   136     if [ $$$$DEPCOUNT -ne 0 ]; then  \
       
   137       echo -e "$$$${DEPTXT:0:$$$$[ $$$${#DEPTXT} - 4 ]}\n"; fi ;\
   136   } ;\
   138   } ;\
   137 } 
   139 } 
   138 endef
   140 endef
   139 
   141 
   140 else
   142 else