[BACK]Return to subst.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / mk

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /pkgsrc/mk/subst.mk between version 1.4 and 1.5

version 1.4, 2003/12/11 00:05:36 version 1.5, 2003/12/27 03:02:11
Line 26 
Line 26 
   
 ECHO_SUBST_MSG?=        ${ECHO}  ECHO_SUBST_MSG?=        ${ECHO}
   
 # _SUBST_IS_TEXT_FILE returns 0 if $${file} is a text file.  
 _SUBST_IS_TEXT_FILE?= \  
         ${FILE_CMD} $${file} | ${EGREP} "(shell script|text)" >/dev/null 2>&1  
   
 .for _class_ in ${SUBST_CLASSES}  .for _class_ in ${SUBST_CLASSES}
 _SUBST_COOKIE.${_class_}=       ${WRKDIR}/.subst_${_class_}_done  _SUBST_COOKIE.${_class_}=       ${WRKDIR}/.subst_${_class_}_done
   
Line 73  ${_SUBST_COOKIE.${_class_}}:
Line 69  ${_SUBST_COOKIE.${_class_}}:
         case "$$files" in                                               \          case "$$files" in                                               \
         "")     ;;                                                      \          "")     ;;                                                      \
         *)      for file in $${files}; do                               \          *)      for file in $${files}; do                               \
                         if ${_SUBST_IS_TEXT_FILE}; then                 \                          ${MV} -f $$file $$file.subst.sav;               \
                                 ${MV} -f $$file $$file.subst.sav;       \                          ${CAT} $$file.subst.sav                         \
                                 ${CAT} $$file.subst.sav                 \                                  | ${SUBST_FILTER_CMD.${_class_}}        \
                                         | ${SUBST_FILTER_CMD.${_class_}} \                                  > $$file;                               \
                                         > $$file;                       \                          if [ -x $$file.subst.sav ]; then                \
                                 if [ -x $$file.subst.sav ]; then        \                                  ${CHMOD} +x $$file;                     \
                                         ${CHMOD} +x $$file;             \                          fi;                                             \
                                 fi;                                     \                          if ${CMP} -s $$file.subst.sav $$file; then      \
                                 if ${CMP} -s $$file.subst.sav $$file; then \                                  ${MV} -f $$file.subst.sav $$file;       \
                                         ${MV} -f $$file.subst.sav $$file; \                          else                                            \
                                 else                                    \                                  ${ECHO} $$file >> ${.TARGET};           \
                                         ${ECHO} $$file >> ${.TARGET};   \  
                                 fi;                                     \  
                         fi;                                             \                          fi;                                             \
                 done ;;                                                 \                  done ;;                                                 \
         esac          esac

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

CVSweb <webmaster@jp.NetBSD.org>