Changeset 3fcd63e for CLFS


Ignore:
Timestamp:
03/23/2006 07:40:39 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
6d3564b
Parents:
62033d2
Message:

Depured final system makefiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    r62033d2 r3fcd63e  
    482482    this_script=`basename $file`
    483483
    484     # Skipping scripts is done now so they are not included in the Makefile.
    485     case $this_script in
    486       *stripping*) continue  ;;
    487       *grub*)      continue  ;;
    488     esac
    489     #
     484    # Test if the stripping phase must be skipped
     485    if [ "$STRIP" = "0" ] && [[ `_IS_ ${this_script} stripping` ]] ; then
     486      continue
     487    fi
     488
    490489    # First append each name of the script files to a list (this will become
    491490    # the names of the targets in the Makefile
    492491    basicsystem="$basicsystem $this_script"
    493     #
    494     # A little customizing via sed scripts first..
    495     if [[ $TEST = "0" ]]; then
    496       # Drop any package checks..
    497       sed -e '/make check/d' -e '/make test/d' -i $file
    498     fi
    499     case $this_script_BLOCKED in
    500       *coreutils*) sed 's@set -e@set -e; set +h@' -i $file        ;;
    501       *groff*)     sed "s@\*\*EDITME.*EDITME\*\*@$PAGE@" -i $file  ;;
    502       *vim*)      sed '/vim -c/d' -i $file  ;;
    503       *bash*)     sed '/exec /d' -i $file   ;;
    504       *shadow*)   sed -e '/grpconv/d' -e '/pwconv/d' -e '/passwd root/d' -i $file
    505                   sed '/sed -i libtool/d' -i $file
    506                   sed '/search_path/d'    -i $file
    507         ;;
    508       *glibc*)    sed '/tzselect/d' -i $file
    509                   sed "s@\*\*EDITME.*EDITME\*\*@$TIMEZONE@" -i $file
    510                   # Manipulate glibc's test to work with Makefile
    511                   sed -e 's/glibc-check-log.*//' \
    512                       -e 's@make -k check >@make -k check >glibc-check-log 2>\&1 || true\ngrep Error glibc-check-log || true@' -i $file
    513         ;;
    514       *binutils*) sed '/expect /d' -i $file
    515                   if [[ $TOOLCHAINTEST = "0" ]]; then
    516                     sed '/make check/d' -i $file
    517                   fi
    518         ;;
    519       *gcc*)      # Ignore all gcc testing for now..
    520                   sed -e '/make -k check/d' -i $file
    521                   sed -e '/test_summary/d' -i $file
    522         ;;
    523       *texinfo*)  # This sucks as a way to trim a script
    524                   sed -e '/cd \/usr/d' \
    525                       -e '/rm dir/d' \
    526                       -e '/for f in/d' \
    527                       -e '/do inst/d' \
    528                       -e '/done/d' -i $file
    529         ;;
    530     esac
    531492
    532493    # Grab the name of the target, strip id number, XXX-script
     
    583544    this_script=`basename $file`
    584545
    585     # Skipping scripts is done now so they are not included in the Makefile.
    586     case $this_script in
    587       *stripping*) continue   ;;
    588       *grub*)      continue   ;;
    589     esac
     546    # Test if the stripping phase must be skipped
     547    if [ "$STRIP" = "0" ] && [[ `_IS_ ${this_script} stripping` ]] ; then
     548      continue
     549    fi
    590550
    591551    # First append each name of the script files to a list (this will become
    592552    # the names of the targets in the Makefile
    593553    basicsystem="$basicsystem $this_script"
    594 
    595     #
    596     # A little customizing via sed scripts first..
    597     if [[ $TEST = "0" ]]; then
    598       # Drop any package checks..
    599       sed -e '/make check/d' -e '/make test/d' -i $file
    600     fi
    601     case $this_script_BLOCKED in
    602       *coreutils*) sed 's@set -e@set -e; set +h@' -i $file        ;;
    603       *groff*)    sed "s@\*\*EDITME.*EDITME\*\*@$PAGE@" -i $file  ;;
    604       *vim*)      sed '/vim -c/d' -i $file      ;;
    605       *bash*)     sed '/exec /d' -i $file       ;;
    606       *shadow*)   sed -e '/grpconv/d' \
    607                       -e '/pwconv/d' \
    608                       -e '/passwd root/d' -i $file
    609                   sed  '/sed -i libtool/d' -i $file
    610                   sed  '/search_path/d'    -i $file
    611         ;;
    612       *psmisc*)   # Build fails on creation of this link. <pidof> installed in sysvinit
    613                   sed -e 's/^ln -s/#ln -s/' -i $file
    614         ;;
    615       *glibc*)    sed '/tzselect/d' -i $file
    616                   sed "s@\*\*EDITME.*EDITME\*\*@$TIMEZONE@" -i $file
    617                   # Manipulate glibc's test to work with Makefile
    618                   sed -e 's/glibc-check-log.*//' -e 's@make -k check >@make -k check >glibc-check-log 2>\&1 || true\ngrep Error glibc-check-log || true@' -i $file
    619         ;;
    620       *binutils*) sed '/expect /d' -i $file
    621                   if [[ $TOOLCHAINTEST = "0" ]]; then
    622                     sed '/make check/d' -i $file
    623                   fi
    624         ;;
    625       *gcc*)      # Ignore all gcc testing for now..
    626                   sed -e '/make -k check/d' -i $file
    627                   sed -e '/test_summary/d' -i $file
    628         ;;
    629       *texinfo*)  # This sucks as a way to trim a script
    630                   sed -e '/cd \/usr/d' \
    631                       -e '/rm dir/d' \
    632                       -e '/for f in/d' \
    633                       -e '/do inst/d' \
    634                       -e '/done/d' -i $file
    635         ;;
    636     esac
    637554
    638555    # Grab the name of the target, strip id number, XXX-script
     
    659576        temp-perl) wrt_unpack3 "perl-$vrs.tar.*"    ;;
    660577        *)         wrt_unpack3 "$name-$vrs.tar.*"   ;;
    661       esac
    662       #
    663       # Export a few 'config' vars..
    664       case $this_script in
    665         *glibc*) # For glibc we can set then TIMEZONE envar.
    666                   echo -e '\t@echo "export TIMEZONE=$(TIMEZONE)" >> envars' >> $MKFILE.tmp   ;;
    667         *groff*) # For Groff we need to set PAGE envar.
    668                   echo -e '\t@echo "export PAGE=$(PAGE)" >> envars' >> $MKFILE.tmp           ;;
    669578      esac
    670579    fi
Note: See TracChangeset for help on using the changeset viewer.