fetching a specific revision from a subversion repository

svn path=/nixpkgs/trunk/; revision=287
This commit is contained in:
Eelco Visser 2003-08-14 12:27:15 +00:00
parent 6c8937cbca
commit e77dea330c
2 changed files with 15 additions and 0 deletions

View file

@ -0,0 +1,9 @@
Function(["name","url","rev"],
Package(
[ ("name", Var("name"))
, ("build", Relative("fetchsvn/fetchsvn.sh"))
, ("url", Var("url"))
, ("rev", Var("rev"))
]
)
)

6
pkgs/fetchsvn/fetchsvn.sh Executable file
View file

@ -0,0 +1,6 @@
#! /bin/sh
echo "exporting svn repository $url (at rev $rev) into $out..."
svn export -r $rev $url $out || exit 1