File: link-recommended

package info (click to toggle)
r-base 4.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 112,924 kB
  • sloc: ansic: 291,338; fortran: 111,889; javascript: 14,798; yacc: 6,154; sh: 5,689; makefile: 5,239; tcl: 4,562; perl: 963; objc: 791; f90: 758; asm: 258; java: 31; sed: 1
file content (21 lines) | stat: -rwxr-xr-x 636 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh
#
# ${R_HOME}/tools/link-recommended

## This is like rsync-recommended but without the rsync.  Before running
## it you are assumed to have already fetched the packages by (say) FTP.

TOOLS_DIR=`echo ${0} | sed 's%/[^/][^/]*$%%'`
(cd "${TOOLS_DIR}"/..
  PKGS=`grep '^R_PKGS_RECOMMENDED *=' share/make/vars.mk | \
    sed 's/.*=//'`
  cd src/library/Recommended

  ## Link all each package to a simplified name so that Make has an
  ## easier time.  Notice that as far as Make is concerned, the symlinks
  ## have the same timestamp as the file they point to.

  for i in ${PKGS} ; do
    ln -sf $i*.tar.gz ${i}.tgz
  done
)