nixpkgs/pkgs/fetchsvn/fetchsvn.sh
Eelco Visser 397901e36f creating tar after obtaining exported subversion directory
svn path=/nixpkgs/trunk/; revision=318
2003-08-18 20:47:12 +00:00

18 lines
436 B
Bash
Executable File

#! /bin/sh
set -e
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