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