#!/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." rm Packages* 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 ep93xx ; do echo -n " $machine" ; mv *${machine}.ipk ../machine/${machine}/ >& /dev/null; done echo for other in i486 i586 i686 guinness ; do mv l*${other}.ipk ../../i686/base/ ; mv g*${other}.ipk ../../i686/base/ ; mv *${other}.ipk ../../i686/base/ ;done cp *all.ipk ../../all/ #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/ep93xx; 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"