The R Project SVN R

Rev

Rev 40768 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 40768 Rev 43235
Line 40... Line 40...
40
  fi
40
  fi
41
fi
41
fi
42
 
42
 
43
tmpfile=${TMPDIR-/tmp}/${bfile}-d.${$}
43
tmpfile=${TMPDIR-/tmp}/${bfile}-d.${$}
44
 
44
 
45
sed -e "${scriptold}" -e "${scriptnew}" -e "${s1}" -e "${s2}" ${ffile} | ${EGREP} -v "${pattern}" > ${tmpfile}
45
${SED-sed} -e "${scriptold}" -e "${scriptnew}" -e "${s1}" -e "${s2}" ${ffile} | ${EGREP} -v "${pattern}" > ${tmpfile}
46
## some packages ship .Rout.save with CRLF endings
46
## some packages ship .Rout.save with CRLF endings
47
(tr -d '\r' <  ${tfile} | sed -e "${scriptold}" -e "${scriptnew}" -e "${s1}" -e "${s2}" | \
47
(tr -d '\r' <  ${tfile} | ${SED-sed} -e "${scriptold}" -e "${scriptnew}" -e "${s1}" -e "${s2}" | \
48
  ${EGREP} -v "${pattern}" | \
48
  ${EGREP} -v "${pattern}" | \
49
  diff -bw ${tmpfile} - ) && exitstatus=0
49
  diff -bw ${tmpfile} - ) && exitstatus=0
50
 
50
 
51
rm -f ${tmpfile}
51
rm -f ${tmpfile}
52
 
52