From e77dea330c211534d5dd6242afc0f926047ad361 Mon Sep 17 00:00:00 2001 From: Eelco Visser Date: Thu, 14 Aug 2003 12:27:15 +0000 Subject: [PATCH] fetching a specific revision from a subversion repository svn path=/nixpkgs/trunk/; revision=287 --- pkgs/fetchsvn/fetchsvn.fix | 9 +++++++++ pkgs/fetchsvn/fetchsvn.sh | 6 ++++++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/fetchsvn/fetchsvn.fix create mode 100755 pkgs/fetchsvn/fetchsvn.sh diff --git a/pkgs/fetchsvn/fetchsvn.fix b/pkgs/fetchsvn/fetchsvn.fix new file mode 100644 index 000000000000..b1d28adbb996 --- /dev/null +++ b/pkgs/fetchsvn/fetchsvn.fix @@ -0,0 +1,9 @@ +Function(["name","url","rev"], + Package( + [ ("name", Var("name")) + , ("build", Relative("fetchsvn/fetchsvn.sh")) + , ("url", Var("url")) + , ("rev", Var("rev")) + ] + ) +) \ No newline at end of file diff --git a/pkgs/fetchsvn/fetchsvn.sh b/pkgs/fetchsvn/fetchsvn.sh new file mode 100755 index 000000000000..8185d3e09285 --- /dev/null +++ b/pkgs/fetchsvn/fetchsvn.sh @@ -0,0 +1,6 @@ +#! /bin/sh + +echo "exporting svn repository $url (at rev $rev) into $out..." + +svn export -r $rev $url $out || exit 1 +