Ignore:
Timestamp:
05/03/2006 09:34:13 AM (18 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
1.0, 2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
afa32da
Parents:
26d25e8
Message:

clean up some cosmetic errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/common-functions

    r26d25e8 r261eea6  
    246246
    247247
    248 #=============================#
    249 wrt_unpack3() {               #
    250 #=============================#
     248#----------------------------------#
     249wrt_unpack3() {                    #
     250#----------------------------------#
    251251  local FILE=$1
    252252(
     
    302302
    303303
    304 #=============================#
    305 wrt_run_as_root2() {          #
    306 #=============================#
     304#----------------------------------#
     305wrt_run_as_root2() {               #
     306#----------------------------------#
    307307  local this_script=$1
    308308  local file=$2
     
    401401
    402402#----------------------------------#
    403 wrt_report() {         #
     403wrt_report() {                     #
    404404#----------------------------------#
    405405(
     
    419419
    420420#----------------------------#
    421 run_make() {
     421run_make() {                 #
    422422#----------------------------#
    423423  # Test if make must be run.
     
    439439
    440440#----------------------------#
    441 clean_builddir() {
     441clean_builddir() {           #
    442442#----------------------------#
    443443  # Test if the clean must be done.
     
    466466
    467467#----------------------------#
    468 get_book() {
     468get_book() {                 #
    469469#----------------------------#
    470470  cd $JHALFSDIR
     
    680680    MD5=`grep "  $FILE" MD5SUMS`
    681681    if [ $? -ne 0 ]; then
    682         set -e
    683         gs_wrt_message "$FILE not found in MD5SUMS"
    684           # IMPORTANT:: There is no MD5SUM for this file.
    685         HAVEMD5=0
     682      set -e
     683      gs_wrt_message "$FILE not found in MD5SUMS"
     684        # IMPORTANT:: There is no MD5SUM for this file.
     685      HAVEMD5=0
    686686    fi
    687687
     
    701701      if [ ! -f $FILE ] ; then
    702702        if ! wget $URL1 && ! wget $URL2 ; then
    703           gs_wrt_message "$FILE not found in the SRC_ARCHIVE or on any server..SKIPPING"
    704           continue
     703          gs_wrt_message "$FILE not found in the SRC_ARCHIVE or on any server..SKIPPING"
     704          continue
    705705        fi
    706706      fi
     
    711711        # IF the md5sum does not match the existing files
    712712      if ! echo "$MD5" | md5sum -c - >/dev/null ; then
    713         [[ $fromARCHIVE = "1" ]] && echo "${BOLD}${YELLOW}MD5SUM did not match SRC_ARCHIVE copy${OFF}"
    714         [[ $fromARCHIVE = "0" ]] && echo "${BOLD}${YELLOW}MD5SUM did not match REMOTE copy${OFF}"
     713        [[ $fromARCHIVE = "1" ]] && echo "${BOLD}${YELLOW}MD5SUM did not match SRC_ARCHIVE copy${OFF}"
     714        [[ $fromARCHIVE = "0" ]] && echo "${BOLD}${YELLOW}MD5SUM did not match REMOTE copy${OFF}"
    715715          # Remove the old file and download a new one
    716         rm -fv $FILE
    717           # Force generation of MD5SUM and storage in SRC_ARCHIVE
     716        rm -fv $FILE
     717          # Force generation of MD5SUM and storage in SRC_ARCHIVE
    718718        fromARCHIVE=0; HAVEMD5=0
    719           # Try and retrieve the file
    720           # I swap server priority to allow for corruption on the primary site
     719          # Try and retrieve the file
    721720        if ! wget -N $URL1 && ! wget -N $URL2 ; then
    722           gs_wrt_message "$FILE not found on the servers.. SKIPPING"
    723           continue
    724         fi
     721          gs_wrt_message "$FILE not found on the servers.. SKIPPING"
     722          continue
     723        fi
    725724      fi
    726725    fi
     
    755754    echo  -e "\n\n${tab_}${RED} One or more files were not retrieved or have a bad MD5SUMS chechsum.\n${tab_} Check ${L_arrow}$BUILDDIR/sources/MISSING_FILES.DMP${R_arrow} for names ${OFF}\n"
    756755      # Do not allow the automatic exection of the Makefile.
    757     echo     "${tab_}${BOLD}${RED}*** ${YELLOW}Automatic execution of the generated makefile has been inhibited. ${RED}***${OFF}${nl_}"
     756    echo "${tab_}${BOLD}${RED}*** ${YELLOW}Automatic execution of the generated makefile has been inhibited. ${RED}***${OFF}${nl_}"
    758757    RUNMAKE=0
    759758  fi
Note: See TracChangeset for help on using the changeset viewer.