#!/bin/bash # # Original File # ------------- # http://Madwifi.net/Downloads/SourceForge.Mirror.madwifi.cvs.sh.txt - download only # http://Madwifi.net/Downloads/MadwifiTest.sh.txt - download/compile/install tests # # # Purpose # ------- # Download the latest drviers from CVS into /usr/local/src # Make a tar ball # # use MadwifiTest.sh.txt to compile, install, test the modules # # # Compare Todays cvs version vs the Previous and # ---------------------------------------------- # diff -r madwifi-today madwifi-previous # # # To Create Patch files # ---------------------------------- # diff -urP old new > new.diff # # # To Apply the Patch Files # ---------------------------------- # patch --dry-run -p0 < new.diff # # # 26-May-04 amo Added WPA # 20-Jul-04 amo Only the WPA tree is supported even if you're not using wpa # 06-Aug-04 amo WPA is obsoleted by original HEAD tree # 25-Aug-04 amo Added yeardate # 27-Sep-04 amo Cleanup for madwifi.net # 02-Oct-04 amo Added comments # 16-Nov-05 amo Changed from virtual to Patch1 # 12-Dec-05 amo Do Incremental tarballs # 06-Mar-06 amo Re-enable removal of Directory of files # # # # Todays time Stamp # ----------------- yeardate=`date '+%Y%m%d'` # # echo "yeardate=$yeardate" # # # 16-Nov-05 amo Changed from virtual to Patch1 # # cd /usr/local/src # cd /usr/local/src/Madwifi/SourceForge.Mirror cd /opt/SrcCD/Wireless/Drivers/madwifi/1.SourceForge.Madwifi.Drivers # # # Save your current Copy before updating to the latest version # ------------------------------------------------------------ # mv madwifi madwifi.previous # # # Good way to update # ------------------ # cvs up -dP # # # New "HEAD" tree as of 06-Aug-04 # ------------------------------- cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi # mv madwifi madwifi-$yeardate # # # 11-Dec-05 amo Generate diff files based from "FULL" # if [ -f "madwifi.FULL" ]; then # FULL=`cat madwifi.FULL` # diff -urP $FULL madwifi-$yeardate > $FULL--to--$yeardate.diff # if [ $? = 0 ]; then touch madwifi-$yeardate.NothingNewToday else gzip $FULL--to--$yeardate.diff fi # else # echo "madwifi-$yeardate" > madwifi.FULL # fi # new.tar zcvf madwifi-${yeardate}.tgz madwifi-$yeardate # # # 06-Mar-06 amo Re-enable removal of Directory of files # # get rid of the list of files # rm -rf madwifi-${yeardate} # # # cvs update -D 20040601 # # # # To check for differences # ----------------------- # diff madwifi.wpa.2004.07.20 madwifi.wpa.previous-copy # # End of file