2003-11-25 19:04:28 +01:00
|
|
|
#! /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 $rev > head-revision.nix
|
|
|
|
|
2003-12-02 14:04:21 +01:00
|
|
|
if ! storeexprs=($(nix-instantiate -vvv do-it.nix)); then exit 1; fi
|
2003-11-25 19:04:28 +01:00
|
|
|
|
2003-12-02 14:04:21 +01:00
|
|
|
srcexpr=${storeexprs[0]}
|
|
|
|
testexpr=${storeexprs[1]}
|
2003-11-25 19:04:28 +01:00
|
|
|
|
2003-12-02 14:04:21 +01:00
|
|
|
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
|
2003-11-25 19:04:28 +01:00
|
|
|
|
|
|
|
uploader="http://losser.st-lab.cs.uu.nl/~eelco/cgi-bin/upload.pl/"
|
|
|
|
|
2003-11-26 11:52:16 +01:00
|
|
|
curl --silent -T "$outpath/manual.html" "$uploader" || exit 1
|
|
|
|
curl --silent -T "$outpath"/nix-*.tar.bz2 "$uploader" || exit 1
|