The R Project SVN R

Rev

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

Rev 9015 Rev 9088
Line 1... Line 1...
1
#!/bin/sh
1
#!/bin/sh
2
#
2
#
3
# ${R_HOME}/bin/build
3
# ${R_HOME}/bin/build
4
 
4
 
5
revision='$Revision: 1.18 $'
5
revision='$Revision: 1.19 $'
6
version=`set - ${revision}; echo ${2}`
6
version=`set - ${revision}; echo ${2}`
7
version="R package builder ${version}
7
version="R package builder ${version}
8
 
8
 
9
Copyright (C) 2000 R Development Core Team.
9
Copyright (C) 2000 R Development Core Team.
10
There is NO warranty.  You may redistribute this software under the
10
There is NO warranty.  You may redistribute this software under the
Line 421... Line 421...
421
      rm -f ${junk}
421
      rm -f ${junk}
422
    fi
422
    fi
423
  done
423
  done
424
  ## And finally build the package (bundle)
424
  ## And finally build the package (bundle)
425
  cd ..
425
  cd ..
-
 
426
  package=`basename ${1}`
426
  exclude_file=${TMPDIR:-/tmp}/Rbuild${$}
427
  exclude_file=${TMPDIR:-/tmp}/Rbuild${$}
427
  rm -f ${exclude_file} 2>/dev/null \
428
  rm -f ${exclude_file} 2>/dev/null \
428
    || (echo "cannot create file with exclude patterns" && exit 2)
429
    || (echo "cannot create file with exclude patterns" && exit 2)
429
  find ${1} -type d -name check >> ${exclude_file}
430
  find ${package} -type d -name check >> ${exclude_file}
430
  find ${1} -name GNUMakefile >> ${exclude_file}
431
  find ${package} -name GNUMakefile >> ${exclude_file}
431
  find ${1} -name CVS >> ${exclude_file}
432
  find ${package} -name CVS >> ${exclude_file}
432
  find ${1} -name \*~ >> ${exclude_file}
433
  find ${package} -name \*~ >> ${exclude_file}
433
  message "building \`${start_dir}/${1}_${version}.tar.gz'"
434
  message "building \`${start_dir}/${package}_${version}.tar.gz'"
434
  tar chfX - ${exclude_file} ${1} | \
435
  tar chfX - ${exclude_file} ${package} | \
435
    gzip -c9 > ${start_dir}/${1}_${version}.tar.gz
436
    gzip -c9 > ${start_dir}/${package}_${version}.tar.gz
436
  rm -f ${exclude_file}
437
  rm -f ${exclude_file}
437
}
438
}
438
 
439
 
439
## The main loop
440
## The main loop
440
if ${debug}; then set -x; fi
441
if ${debug}; then set -x; fi