#!/bin/bash # Copy a Makefile into a directory and then # use it to create some headers for each RPM Genheaders() { DIRECTORY=$1 MAKEFILE=/opt/local/linux/Makefile-Genheaders cd $DIRECTORY if [ ! -f Makefile ] then cp $MAKEFILE Makefile fi make cd $CURRENT } # Mirror subroutine expects two arguments # the directory to put the files into and the directory URL # to get them from. Mirror() { DIRECTORY=$1 URL="$2 $3 $4 $5 $6" if [ ! -d $DIRECTORY ] then mkdir -p $DIRECTORY fi cd $DIRECTORY wget --timeout=30 -r -nc -nd --no-parent --quiet \ --reject='\[page=0\],*.rpm\[peek\],textonly=1,=true,.tar.gz,.sdd,.sh,.csh,.TBL,.link,=A,=D,*.gif,*.jpg' \ $URL rm -rf *.gif *.txt *.html *=* *.php *.tar.gz *.htm README_new *.jpg README DATE=`date` cat > README.txt <