blob: 8b2898217accac3759041182e2ff9fa31263f253 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/sh
# this script builds the apt repo for http://apt.puredata.info/releases
cd /var/www/releases
# delete old ones
find dists -name Packages.gz -delete
find dists -name Packages.bz2 -delete
# make new Packages files
for dir in dists/*/*/binary-*; do
dpkg-scanpackages ${dir} /dev/null | gzip -9c > ${dir}/Packages.gz
dpkg-scanpackages ${dir} /dev/null | bzip2 -9c > ${dir}/Packages.bz2
done
for dir in dists/*; do
apt-ftparchive contents $dir | gzip -9c > ${dir}/Contents.gz
apt-ftparchive release $dir > ${dir}/Release
done
|