bzr 464 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. # We want to catch any unexpected failure, and exit immediately
  3. set -e
  4. # Download helper for bzr, to be called from the download wrapper script
  5. # Expected arguments:
  6. # $1: output file
  7. # $2: bzr repo
  8. # $3: bzr revision
  9. # $4: basename
  10. # And this environment:
  11. # BZR : the bzr command to call
  12. output="${1}"
  13. repo="${2}"
  14. rev="${3}"
  15. basename="${4}"
  16. ${BZR} export --root="${basename}/" --format=tgz "${output}" "${repo}" -r "${rev}"