* fetchcvs: cleanup, use nix-store --add-fixed like fetchurl/svn.

Argument "url" renamed to "cvsRoot" (it's not a URL).

svn path=/nixpkgs/trunk/; revision=10889
This commit is contained in:
Eelco Dolstra
2008-02-28 22:36:37 +00:00
parent 5883330e2c
commit 66738cc356
7 changed files with 70 additions and 77 deletions
+9 -10
View File
@@ -6,18 +6,17 @@ source $stdenv/setup
# should work (but didn't - got no response on #cvs)
# See als man Page for those options
ensureDir $out export
set -x
ensureDir export
if [ -n "$tag" ]; then
tag="-r $tag"
tag="-r $tag"
else
if [ -n "$date" ]; then
tag="-D $date"
else
tag="-D NOW"
fi
if [ -n "$date" ]; then
tag="-D $date"
else
tag="-D NOW"
fi
fi
cd export; cvs -f -d "$url" export $tag "$module"
mv */* $out
(cd export && cvs -f -z0 -d "$cvsRoot" export $tag "$module")
mv export/* $out
stopNest