* Fix Nixpkgs manual mirroring.

git-svn-id: https://nixos.org/repos/nix/release/trunk/channels@34857 70bd8c7a-acb8-0310-9f0d-9cc1c95dcdbb
This commit is contained in:
Eelco Dolstra 2014-09-10 12:05:26 +00:00
parent 30a6654bf2
commit 3481bfaf40
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ find /data/releases/nixos/ /data/releases/nixpkgs/ -maxdepth 1 -name ".tmp*" -mt
done
# Remove old NixOS releases.
find /data/releases/nixos/unstable/ /data/releases/nixos/??.??/ -maxdepth 1 -name "nixos-*pre*" -mtime +14 | sort | while read rel; do
find /data/releases/nixos/unstable/ /data/releases/nixos/??.??/ -maxdepth 1 -name "nixos-*pre*" -mtime +7 | sort | while read rel; do
if [ -e $rel/keep ]; then
echo "keeping NixOS release $rel" >&2
continue

View file

@ -34,9 +34,9 @@ else
/data/releases/patches/all-patches "$url/job/tarball/download/1"
# Extract the manual.
mkdir $tmpDir/manual
tar xf $tmpDir/nixexprs.tar.xz --strip-components=2 -C $tmpDir/manual \
--wildcards '*/doc' --exclude '*.xml' --exclude '*.xsl' --exclude '*.txt' --exclude 'Makefile'
$curl -L $url/job/manual/output/out | bzip2 -d | nix-store --restore $tmpDir/foo
mv $tmpDir/foo/share/doc/nixpkgs $tmpDir/manual
rm -rf $tmpDir/foo
ln -s manual.html $tmpDir/manual/index.html
mv $tmpDir $releaseDir