DISTARCH=i386 FERMIROOT=. COMPSFILE=comps.xml.main COMPEXTRA=/usr/share/comps-extras/ export PYTHONPATH=/usr/lib/anaconda PARTCOMPS=/tmp/comps.xml.tmp #cd $FERMIROOT/$DISTARCH/RedHat/base echo "Taking $FERMIROOT/$COMPSFILE and $FERMIROOT/fermigroups.xml.main and $FERMIROOT/workgroups.xml.main " echo "Writing it out as $FERMIROOT/comps.xml.new " # gets rid of the "" at the end temporatily cat $COMPSFILE |sed 's!!!g' > $PARTCOMPS # adding in the fermi groups such as Fermi Desktop if [ -s fermigroups.xml.main ] ; then cat fermigroups.xml.main >> $PARTCOMPS fi # adding in the workgroups if [ -s workgroups.xml.main ] ; then cat workgroups.xml.main >> $PARTCOMPS fi # put the "" at the end back echo '' >> $PARTCOMPS cp $PARTCOMPS comps.xml.new