diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-05-01 18:42:48 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2009-05-01 18:42:48 +0000 |
commit | f222c45a1cd6fd96add3c2fdcfced88d15e0393c (patch) | |
tree | 93efb37e90659b90d42881b079aa6415a3886c7d /scripts | |
parent | ebdc0de7a13f19cf8efba3a0d2c65f8fef023111 (diff) |
script to build the apt repo for apt.puredata.info/releases
svn path=/trunk/; revision=11217
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build-packages.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/scripts/build-packages.sh b/scripts/build-packages.sh new file mode 100644 index 00000000..8b289821 --- /dev/null +++ b/scripts/build-packages.sh @@ -0,0 +1,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 + + |