# Default is to clean the master web page and to update all web sites. all: update help: # make Does everything: cleans and updates all web sites # make clean Just cleans the local web site # make update Updates the primary and secondary web sites # make primary Updates the primary web site # make alternate Updates the alternate web site # # make backup Back up to thumbdrive. # make diff Check differences to thumbdrive. # make filemark Create filemarks. # Clean the master web page only. clean: rm -f logMaster.txt python updateweb.py -c mv -f logMaster.txt ../../private/logMaster.txt # Clean master web page and update all web sites. update: primary alternate # Update primary web site only. primary: rm -f log.txt python updateweb.py mv -f log.txt ../../private/log.txt # Update alternate web site only. alternate: rm -f logAlternate.txt python updateweb.py -a mv -f logAlternate.txt ../../private/logAlternate.txt # Backup to thumb drive. backup: echo "Backing up to ${root_dir} stuff to ${thumb_drive}." echo "On Mac OS X to unlock files do either: " echo " sudo chflags -R nouchg ." echo " cd ~/Desktop/Sean ; find Sean -type d -exec /Developer/Tools/SetFile -a l {} \;" cp -r ${root_dir}/Sean/Business/CalendarContacts ${thumb_drive}/Sean/Business cp ${root_dir}/Sean/Business/Money/Accounts.html ${thumb_drive}/Sean/Business/Money cp ${root_dir}/Sean/Business/Money/Accounts.html_filemark.html ${thumb_drive}/Sean/Business/Money cp -r ${root_dir}/Sean/StuffToBeFiled ${thumb_drive}/Sean cp -r ${root_dir}/Sean/WebSite ${thumb_drive}/Sean diff: echo "Differencing master to ${root_dir} to thumb drive ${thumb_drive}." -diff -r --brief --side-by-side ${root_dir}/Sean/WebSite ${thumb_drive}/Sean/WebSite -diff -r --brief --side-by-side ${root_dir}/Sean/Business/CalendarContacts ${thumb_drive}/Sean/Business/CalendarContacts -diff --brief --side-by-side ${root_dir}/Sean/Business/Money/Accounts.html ${thumb_drive}/Sean/Business/Money/Accounts.html -diff --brief --side-by-side ${root_dir}/Sean/Business/Money/Accounts.html_filemark.html ${thumb_drive}/Sean/Business/Money/Accounts.html_filemark.html -diff -r --brief --side-by-side ${root_dir}/Sean/StuffToBeFiled ${thumb_drive}/Sean/StuffToBeFiled # Create filemarks. filemark: python ../FileMarkMaker.py ../../../Business/CalendarContacts/calendar.html python ../FileMarkMaker.py ../../../Business/CalendarContacts/telephone.html python ../FileMarkMaker.py ../../../Business/Money/Accounts.html echo "Now open the filemark files in Safari"