summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support/fetchsvn/builder.sh
blob: b8f18eeda32b1d37d0128ceb092d688195e87eb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
echo "exporting $url (r$rev) into $out"

if test -n "$http_proxy"; then
    # Configure proxy
    mkdir .subversion
    proxy="${http_proxy#*://}"

    echo '[global]' > .subversion/servers
    echo "http-proxy-host = ${proxy%:*}" >> .subversion/servers
    echo "http-proxy-port = ${proxy##*:}" >> .subversion/servers

    export HOME="$PWD"
fi;

if test -z "$LC_ALL"; then
    export LC_ALL="en_US.UTF-8"
fi;

svn export --trust-server-cert --non-interactive \
    ${ignoreExternals:+--ignore-externals} ${ignoreKeywords:+--ignore-keywords} \
    -r "$rev" "$url" "$out"