#!/bin/sh echo "This script will split the 'base' feed into perl, python and machine subfeeds. It does NOT split out X and qt/e stuff." find . -name Packages* | xargs rm >&/dev/null #remember to remove angstrom-version from the feeds! BPWD=`pwd` cd base echo -n "Moving machine files out of the way:" for machine in a780 akita c7x0 ep93xx h2200 h4000 h5xxx htcuniversal hx4700 hx2000 ipaq-pxa270 netbook-pro nokia770 poodle spitz tosa x86 i486 i586 i686 guinness alix ; do echo -n " $machine" ; mv *${machine}.ipk ../machine/${machine}/ >& /dev/null; done echo #split the feeds based on names mv python* ../python/ >& /dev/null mv perl* ../perl/ >& /dev/null mv *-dbg* ../debug/ >& /dev/null mv gst* ../gstreamer >& /dev/null for i in ../* ; do echo -n "building index for $i:"|sed s:\.\./:: ;ipkg-make-index -p Packages -l Packages.filelist -L ../locales -m . >& /dev/null ; echo " DONE"; cd $i >& /dev/null; done cd ${BPWD} rm machine/Pac* rm locales/Pac* cd machine/tosa ; ipkg-make-index -p Packages -l Packages.filelist -L ../../locales -m . >& /dev/null ; echo -n " machines:" ; for i in ../* ; do echo -n " $i" |sed s:\.\./::; ipkg-make-index -p Packages -l Packages.filelist -L ../../locales -m . >& /dev/null; cd $i ; done ; echo " DONE" cd ${BPWD}/locales/en/ ; echo -n " locales:" ; for i in ../* ; do echo -n " $i" |sed s:\.\./::; ipkg-make-index -p Packages -l Packages.filelist -m . >& /dev/null; cd $i ; done ; echo " DONE" php ~/website/repo/update.php echo -n "Stripping source lines from Package files" for i in `find . -name Packages` ; do grep -v ^Source: $i|gzip -c9>$i.gz ;gunzip -c $i.gz>$i ; done echo " DONE"