mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
397901e36f
svn path=/nixpkgs/trunk/; revision=318
18 lines
436 B
Bash
Executable File
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
|