The R Project SVN R

Rev

Rev 9481 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
8746 hornik 1
#!/bin/sh
2
# Diff  ``without R version''
3
f1=${1}
4
f2=${2}
5
exitstatus=${3}
6
 
7
egrepv='(^Version|^Number of.*:|^Type|^R : Copyright'
8
if test -n "`grep primitive-funs $f1`"; then
9
  egrepv=${egrepv}'|^\[1\] [19][0-9][0-9])'
10
else
11
  egrepv=${egrepv}')'
12
fi
13
 
14
tmpfile=${TMPDIR:-/tmp}/${f1}-d.${$}
15
 
16
egrep -v "${egrepv}" ${f1} > ${tmpfile}
17
(egrep -v "${egrepv}" ${f2} | diff -bw ${tmpfile} - ) && exitstatus=0
18
 
19
rm -f ${tmpfile}
20
exit ${exitstatus}