svn 490 B

12345678910111213141516171819202122
  1. #!/usr/bin/env bash
  2. # We want to catch any unexpected failure, and exit immediately
  3. set -e
  4. # Download helper for svn, to be called from the download wrapper script
  5. # Expected arguments:
  6. # $1: output file
  7. # $2: svn repo
  8. # $3: svn revision
  9. # $4: package's basename (eg. foobar-1.2.3)
  10. # And this environment:
  11. # SVN : the svn command to call
  12. output="${1}"
  13. repo="${2}"
  14. rev="${3}"
  15. basename="${4}"
  16. ${SVN} export "${repo}@${rev}" "${basename}"
  17. tar czf "${output}" "${basename}"