creating tar after obtaining exported subversion directory

svn path=/nixpkgs/trunk/; revision=318
This commit is contained in:
Eelco Visser 2003-08-18 20:47:12 +00:00
parent b86f5facff
commit 397901e36f
2 changed files with 18 additions and 6 deletions

View File

@ -1,9 +1,10 @@
Function(["name","url","rev"],
Function(["name","url","dir","rev"],
Package(
[ ("name", Var("name"))
, ("build", Relative("fetchsvn/fetchsvn.sh"))
, ("url", Var("url"))
, ("rev", Var("rev"))
, ("url", Var("url"))
, ("dir", Var("dir"))
, ("rev", Var("rev"))
, ("svn", Call(IncludeFix("subversion/subversion.fix"),
[ ("localServer", True)
@ -11,7 +12,6 @@ Function(["name","url","rev"],
, ("httpServer", True)
, ("pythonBindings", True)
]))
]
)
)

View File

@ -1,5 +1,17 @@
#! /bin/sh
echo "exporting svn repository $url (at rev $rev) into $out..."
set -e
$svn/bin/svn export -r $rev $url $out || exit 1
echo "exporting svn repository $url/$dir (at rev $rev) into $out..."
svn export -r $rev $url/$dir $dir
# touch bootstrapped sources because subversion doesn't sets the mtime of files
# to checkout time, not to the last mtime in the repository.
MTIME=`date +%Y%m%d%H%M.%S`
echo "** INFO -- Modification time: $MTIME"
find $dir -print | xargs touch -t $MTIME
# end of touch
mkdir $out
tar zcf $out/$dir.tar.gz $dir