#!/bin/csh -f #(ie run the cshell on this but don't read the .cshrc) # version = 1.02 of grab 2005 Mar 26 # 2005 Mar 26, 1.02: upgrade to new version from jovialathiest # 2002 Jun 29, 1.01: simplify directory # 2002Jun29.23:04:10, 1.00: origin # original source: # set source = http://www.geocities.com/athens/cyprus/1931/hmpindex.html # new source 2005 Mar 26: set source = http://www.jovialatheist.com/hmpindex.html set target = webcopy # How to do absolute links with wget: # wget -r $source # This is no good because the links all point back to geocities # wget makes it all local links: # wget -r --convert-links $source # --no-directories put everything in the current directory # but that won't clobber. SO... # --cut-dirs=4 wget \ -r \ --convert-links \ --no-directories \ --directory-prefix=$target \ $source chmod a+rx $target chmod a+r $target/* exit ******************************************************************************** # This is all nice, but we don't realy need this structure: chmod a+rx www.geocities.com cd www.geocities.com chmod a+rx js_source chmod a+r js_source/* chmod a+rx athens cd athens chmod a+rx cyprus cd cyprus chmod a+rx 1931 cd 1931 chmod a+r *