3 PACKAGES=public/packages
9 for i in ../../$SOURCES/*; do
12 echo "Skipping directory '$BASE'"
15 if [ ! -f "$i" ]; then
16 echo "Skipping special file file '$BASE'"
19 if [ ! -r "$i" ]; then
20 echo "Skipping non-readable file '$BASE'"
24 VERSION=`cat $i | grep "^Version:" | sed "s/^Version: //"`
25 PACKAGE=`cat $i | grep "^Package:" | sed "s/^Package: //"`
27 if [ -z "${PACKAGE}" -o -z "${VERSION}" ]; then
28 echo "Skipping non-equivs file '$BASE'"
31 if [ -f "${PACKAGE}_${VERSION}_all.deb" ]; then
32 echo "Skipping $PACKAGE, version $VERSION already built"
36 echo "Building version $VERSION of $PACKAGE"