2
1

cvs 596 B

12345678910111213141516171819202122232425
  1. #!/usr/bin/env bash
  2. # We want to catch any unexpected failure, and exit immediately
  3. set -e
  4. # Download helper for cvs, to be called from the download wrapper script
  5. # Expected arguments:
  6. # $1: output file
  7. # $2: cvs repo
  8. # $3: cvs revision
  9. # $4: package's name (eg. foobar)
  10. # $5: package's basename (eg. foobar-1.2.3)
  11. # And this environment:
  12. # CVS : the cvs command to call
  13. output="${1}"
  14. repo="${2}"
  15. rev="${3}"
  16. rawname="${4}"
  17. basename="${5}"
  18. ${CVS} -z3 -d":pserver:anonymous@${repo}" \
  19. co -d "${basename}" -r ":${rev}" -P "${rawname}"
  20. tar czf "${output}" "${basename}"