2022-12-08 00:51:03 +01:00
|
|
|
if [ -e .attrs.sh ]; then source .attrs.sh; fi
|
2006-05-11 14:36:16 +02:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2021-02-08 19:18:17 +01:00
|
|
|
(echo "#!$SHELL"; \
|
2018-04-20 04:51:40 +02:00
|
|
|
echo 'ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no "$@"') > ssh
|
|
|
|
chmod +x ssh
|
|
|
|
export CVS_RSH=$PWD/ssh
|
|
|
|
|
2007-11-11 09:16:23 +01:00
|
|
|
# creating the export drictory and checking out there only to be able to
|
|
|
|
# move the content without the root directory into $out ...
|
|
|
|
# cvs -f -d "$url" export $tag -d "$out" "$module"
|
|
|
|
# should work (but didn't - got no response on #cvs)
|
|
|
|
# See als man Page for those options
|
2006-05-11 14:36:16 +02:00
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p export
|
2007-11-13 02:26:54 +01:00
|
|
|
if [ -n "$tag" ]; then
|
2008-02-28 23:36:37 +01:00
|
|
|
tag="-r $tag"
|
2007-11-13 02:26:54 +01:00
|
|
|
else
|
2008-02-28 23:36:37 +01:00
|
|
|
if [ -n "$date" ]; then
|
|
|
|
tag="-D $date"
|
|
|
|
else
|
|
|
|
tag="-D NOW"
|
|
|
|
fi
|
2007-11-13 02:26:54 +01:00
|
|
|
fi
|
2008-02-28 23:36:37 +01:00
|
|
|
(cd export && cvs -f -z0 -d "$cvsRoot" export $tag "$module")
|
|
|
|
mv export/* $out
|
2006-05-11 14:36:16 +02:00
|
|
|
|
|
|
|
stopNest
|