2010-06-12 12:22:09 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Use this script with the upstream sorted list of patches
|
2013-10-30 22:04:25 +01:00
|
|
|
# curl ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/patches-5.0.{x+1}/patch_order-5.0.x |
|
2010-06-12 12:22:09 +02:00
|
|
|
# grep -v '^#' | sh create-patches-v5.sh
|
|
|
|
|
2013-10-30 22:04:25 +01:00
|
|
|
BASEURL=mirror://kernel/linux/daemons/autofs/v5/patches-5.0.9;
|
2010-06-12 12:22:09 +02:00
|
|
|
|
|
|
|
echo '# File created automatically' > patches-v5.nix
|
|
|
|
echo 'fetchurl :' >> patches-v5.nix
|
|
|
|
echo '[' >> patches-v5.nix
|
|
|
|
|
|
|
|
while read a; do
|
|
|
|
URL=$BASEURL/$a
|
|
|
|
HASH=`nix-prefetch-url $URL`
|
|
|
|
echo "(fetchurl { url = $URL; sha256 = \"$HASH\"; })" >> patches-v5.nix
|
|
|
|
done
|
|
|
|
|
|
|
|
echo ']' >> patches-v5.nix
|