#!/bin/bash # # This is a simple script to complete the generation of a # set of CD's containing the current updates. # # It assumes that the ./check2updates script has been run, and that # the master RPM files contain all the latest stuff. # # usage: ./makecd # MY_DIR=`pwd` # couple quick integrity checks if [ ! -e $MY_DIR/myRPMS ]; then echo "Could not find the \"myRPMS\" directory." exit 1 fi if [ ! -e $MY_DIR/myRPMS4 ]; then echo "Could not find the \"myRPMS4\" directory." exit 1 fi if [ ! -e $MY_DIR/myCD.conf ]; then echo "Could not find the CD Configuration file." exit 1 fi if [ ! -e $MY_DIR/cd ]; then echo "Could not find the \"cd\" directory." exit 1 fi # first, get rid of the old stuff echo "Removing old stuff..." rm -f $MY_DIR/myRPMS/*.cz rm -f $MY_DIR/myRPMS4/*.cz rm -f $MY_DIR/cd/isolinux/boot.cat rm -f $MY_DIR/cd/pkg*.idx rm -f $MY_DIR/cd/Mandrake/base/compss rm -f $MY_DIR/cd/Mandrake/base/depslist.ordered rm -f $MY_DIR/cd/Mandrake/base/hdlist*.cz rm -f $MY_DIR/cd/Mandrake/base/provides rm -f $MY_DIR/cd/Mandrake/base/synth* rm -f $MY_DIR/cd/.rr_moved rm -rf $MY_DIR/tmp rm -rf $MY_DIR/build rm -rf $MY_DIR/iso rm -f $MY_DIR/myCD.script rm -f $MY_DIR/progress.log echo "Now making ISO images." mkcd -s $MY_DIR/myCD.conf --verbose -p myCD.script -m 1,2,3 &> $MY_DIR/progress.log echo "Done, the ISOs are located at $MY_DIR/iso/9.0." echo "and, the verbose diagnostic information is in the file $MY_DIR/progress.log" exit 0