anvil-editor: init at 0.4
[NixPkgs.git] / pkgs / build-support / fetchcvs / builder.sh
blob7e4dde4a64c8b41df9840cee0a1076c98c915fec
1 if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
2 source $stdenv/setup
4 (echo "#!$SHELL"; \
5 echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh
6 chmod +x ssh
7 export CVS_RSH=$PWD/ssh
9 # creating the export drictory and checking out there only to be able to
10 # move the content without the root directory into $out ...
11 # cvs -f -d "$url" export $tag -d "$out" "$module"
12 # should work (but didn't - got no response on #cvs)
13 # See als man Page for those options
15 mkdir -p export
16 if [ -n "$tag" ]; then
17 tag="-r $tag"
18 else
19 if [ -n "$date" ]; then
20 tag="-D $date"
21 else
22 tag="-D NOW"
25 (cd export && cvs -f -z0 -d "$cvsRoot" export $tag "$module")
26 mv export/* $out