stevenblack-blocklist: 3.15.5 -> 3.15.8 (#372042)
[NixPkgs.git] / pkgs / build-support / fetchcvs / builder.sh
blobec66a43d6ff8ea621acb59b0451aa67f058bffab
1 (echo "#!$SHELL"; \
2 echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh
3 chmod +x ssh
4 export CVS_RSH=$PWD/ssh
6 # creating the export drictory and checking out there only to be able to
7 # move the content without the root directory into $out ...
8 # cvs -f -d "$url" export $tag -d "$out" "$module"
9 # should work (but didn't - got no response on #cvs)
10 # See als man Page for those options
12 mkdir -p export
13 if [ -n "$tag" ]; then
14 tag="-r $tag"
15 else
16 if [ -n "$date" ]; then
17 tag="-D $date"
18 else
19 tag="-D NOW"
22 (cd export && cvs -f -z0 -d "$cvsRoot" export $tag "$module")
23 mv export/* $out