mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
1fde9ff92d
svn path=/nixpkgs/trunk/; revision=570
28 lines
808 B
Bash
Executable file
28 lines
808 B
Bash
Executable file
#! /bin/sh
|
|
|
|
url="https://svn.cs.uu.nl:12443/repos/trace/nix/trunk/"
|
|
|
|
if ! rev=$(curl --silent -k https://svn.cs.uu.nl:12443/repos/trace/nix/trunk/ \
|
|
| grep '<h2>Revision' \
|
|
| sed 's/.*Revision \(.*\):.*/\1/'); \
|
|
then exit 1; fi
|
|
|
|
echo "building revision $rev of $url"
|
|
|
|
echo $rev > head-revision.nix
|
|
|
|
if ! storeexprs=($(nix-instantiate -vvv do-it.nix)); then exit 1; fi
|
|
|
|
srcexpr=${storeexprs[0]}
|
|
testexpr=${storeexprs[1]}
|
|
|
|
if ! nix-store -vvvv -r "$srcexpr" > /dev/null; then exit 1; fi
|
|
|
|
if ! nix-store -vvvv -r "$testexpr" > /dev/null; then exit 1; fi
|
|
|
|
if ! outpath=$(nix-store -qn "$srcexpr"); then exit 1; fi
|
|
|
|
uploader="http://losser.st-lab.cs.uu.nl/~eelco/cgi-bin/upload.pl/"
|
|
|
|
curl --silent -T "$outpath/manual.html" "$uploader" || exit 1
|
|
curl --silent -T "$outpath"/nix-*.tar.bz2 "$uploader" || exit 1
|