at 24.11-pre 26 lines 776 B view raw
1if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi 2source $stdenv/setup 3 4(echo "#!$SHELL"; \ 5 echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh 6chmod +x ssh 7export CVS_RSH=$PWD/ssh 8 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 14 15mkdir -p export 16if [ -n "$tag" ]; then 17 tag="-r $tag" 18else 19 if [ -n "$date" ]; then 20 tag="-D $date" 21 else 22 tag="-D NOW" 23 fi 24fi 25(cd export && cvs -f -z0 -d "$cvsRoot" export $tag "$module") 26mv export/* $out