2012-04-04 21:18:57 +00:00
|
|
|
#! /bin/sh -e
|
|
|
|
|
2012-04-05 10:53:29 +00:00
|
|
|
releasesDir=/data/releases/nixpkgs
|
2012-04-04 21:18:57 +00:00
|
|
|
|
|
|
|
prev=""
|
|
|
|
|
|
|
|
for i in $(cd "$releasesDir" && ls -d nixpkgs-*pre* | sort -n); do
|
|
|
|
if test -e "$releasesDir/$i/MANIFEST"; then
|
2012-04-06 20:17:13 +00:00
|
|
|
if test -n "$prev" -a ! -e "$releasesDir/$i/.patches-created"; then
|
2012-04-04 21:18:57 +00:00
|
|
|
echo $prev "->" $i
|
|
|
|
date
|
|
|
|
time ./generate-patches.sh "$releasesDir/$prev" "$releasesDir/$i"
|
2012-04-06 20:17:13 +00:00
|
|
|
touch "$releasesDir/$i/.patches-created"
|
2012-04-04 21:18:57 +00:00
|
|
|
fi
|
|
|
|
prev=$i
|
|
|
|
fi
|
|
|
|
done
|
2012-06-08 21:46:29 +00:00
|
|
|
|
|
|
|
releasesDir=/data/releases/nixos
|
|
|
|
|
|
|
|
prev=""
|
|
|
|
|
|
|
|
for i in $(cd "$releasesDir" && ls -d nixos-*pre* | sort -n); do
|
|
|
|
if test -e "$releasesDir/$i/MANIFEST"; then
|
|
|
|
if test -n "$prev" -a ! -e "$releasesDir/$i/.patches-created"; then
|
|
|
|
echo $prev "->" $i
|
|
|
|
date
|
|
|
|
time ./generate-patches.sh "$releasesDir/$prev" "$releasesDir/$i"
|
|
|
|
touch "$releasesDir/$i/.patches-created"
|
|
|
|
fi
|
|
|
|
prev=$i
|
|
|
|
fi
|
|
|
|
done
|