"Fossies" - the Fresh Open Source Software Archive

Member "partlogic-0.9-src/utils/wget-site.sh" (16 Apr 2020, 727 Bytes) of package /linux/privat/partlogic-0.9-src.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "wget-site.sh": 0.77_vs_0.85.

    1 #!/bin/sh
    2 ##
    3 ##  Partition Logic
    4 ##  Copyright (C) 1998-2020 J. Andrew McLaughlin
    5 ##
    6 ##  wget-site.sh
    7 ##
    8 
    9 # Retrieves the relevant parts of the partitionlogic.org.uk website that we
   10 # include in the 'docs' directory
   11 
   12 SITE=partitionlogic.org.uk
   13 
   14 TMP1=$SITE.tmp1
   15 TMP2=$SITE.tmp2
   16 
   17 if [ -d "$SITE" ] ; then
   18     for FILE in `find $SITE -type f | grep -v CVS` ; do
   19         rm $FILE
   20     done
   21 fi
   22 
   23 wget --recursive --level=99 --page-requisites --convert-links --restrict-file-names=windows -X /forums --reject zip --domains $SITE $SITE
   24 
   25 rm -Rf $SITE/feed $SITE/comments
   26 rm -f $SITE/index.html\@*
   27 
   28 cvs update $SITE > $TMP1 2>&1
   29 grep "^U " $TMP1 > $TMP2
   30 for FILE in `cut -d' ' -f2 $TMP2` ; do
   31     rm $FILE ; cvs rm $FILE
   32 done
   33 rm -f $TMP1 $TMP2
   34 
   35 exit 0
   36