blob: 51ae49db34e0c17a5b62b730909ba013a12a7f9f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
# this script builds the apt repo for http://apt.puredata.info/releases
cd /home/apt/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
echo $dir
dpkg-scanpackages ${dir} /dev/null > ${dir}/Packages
cat ${dir}/Packages | gzip -9c > ${dir}/Packages.gz
cat ${dir}/Packages | bzip2 -9c > ${dir}/Packages.bz2
done
for dir in dists/*; do
test -h $dir && continue
echo $dir
apt-ftparchive contents $dir | gzip -9c > ${dir}/Contents.gz
apt-ftparchive -c $dir/apt-release.conf release $dir > ${dir}/Release
apt-ftparchive sources $dir > ${dir}/main/source/Sources
done
|