]> git.madduck.net Git - code/vinst.git/blob - di-update

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

2e4a8b119815814a99503cab44d699534e3d8565
[code/vinst.git] / di-update
1 #!/bin/sh
2 set -eu
3
4 : ${MIRROR:=ftp://ftp2.de.debian.org}
5 : ${SUBDIR:=debian/dists/%SUITE%/main/installer-%ARCH%/current/images}
6
7 : ${ARCHS:=amd64}
8 : ${SUITES:=wheezy jessie}
9
10 #: ${MIRROR_jessie:=http://d-i.debian.org}
11 #: ${SUBDIR_jessie:=daily-images/%ARCH%/daily/}
12
13 for a in $ARCHS; do
14
15   for s in $SUITES; do
16
17     eval m=\${MIRROR_$s:-$MIRROR}
18     eval p=\${SUBDIR_$s:-$SUBDIR}
19     p=$(echo $p | sed -e "s,%ARCH%,$a,;s,%SUITE%,$s,;s,/$,,")
20
21     # count number of path components
22     n=1; t=$p; while [ "${t%/*}" != "$t" ]; do t=${t%/*}; n=$((n+1)); done
23
24     wget -np -nH -m --cut-dirs=$n \
25       --directory-prefix=installer-$a/$s/current/images \
26       -X $p/cdrom,$p/hd-media \
27       -R index.html\* \
28       $m/$p/
29
30   done
31
32 done