get-debian-suite-info 627 Bytes
Newer Older
1 2 3 4
#!/bin/sh
set -e
mkdir -p /srv/wiki.debian.org/var/apt
cd /srv/wiki.debian.org/var/apt
5
for release in oldoldstable oldstable stable testing unstable experimental ; do
6
	wget -qO $release.tmp http://httpredir.debian.org/debian/dists/$release/Release || continue
7
	sed -n 's/^Date: //p' $release.tmp | date --file=- +%F > $release.date.tmp
8 9 10
	sed -n 's/^Version: //p' $release.tmp > $release.version.tmp
	sed -n 's/^Codename: //p' $release.tmp > $release.codename.tmp
	mv $release.tmp $release
11
	mv $release.date.tmp $release.date
12 13 14 15
	mv $release.version.tmp $release.version
	mv $release.codename.tmp $release.codename
done
rm -f *.tmp