apt-repository: Split debian-useful-normal into -desktop and -server.
[apt-repository.git] / rebuild
1 #!/bin/sh
2 SOURCES=sources
3 PACKAGES=public/packages
4
5 mkdir -p $PACKAGES
6
7 cd $PACKAGES
8
9 for i in ../../$SOURCES/*; do 
10         VERSION=`cat $i | grep "^Version:" | sed "s/^Version: //"`
11         PACKAGE=`cat $i | grep "^Package:" | sed "s/^Package: //"`
12         
13         if [ ! -f "${PACKAGE}_${VERSION}_all.deb" ]; then
14                 echo "Building version $VERSION of $PACKAGE"
15                 equivs-build $i
16         else
17                 echo "Skipping $PACKAGE, version $VERSION already built"
18         fi
19 done
20
21 cd ../..