r2396 - jhalfs/branches/experimental/CLFS

manuel at linuxfromscratch.org manuel at linuxfromscratch.org
Thu Mar 23 11:40:40 PST 2006


Author: manuel
Date: 2006-03-23 12:40:39 -0700 (Thu, 23 Mar 2006)
New Revision: 2396

Modified:
   jhalfs/branches/experimental/CLFS/master.sh
Log:
Depured final system makefiles.

Modified: jhalfs/branches/experimental/CLFS/master.sh
===================================================================
--- jhalfs/branches/experimental/CLFS/master.sh	2006-03-23 18:51:57 UTC (rev 2395)
+++ jhalfs/branches/experimental/CLFS/master.sh	2006-03-23 19:40:39 UTC (rev 2396)
@@ -481,53 +481,14 @@
     # Keep the script file name
     this_script=`basename $file`
 
-    # Skipping scripts is done now so they are not included in the Makefile.
-    case $this_script in
-      *stripping*) continue  ;;
-      *grub*)      continue  ;;
-    esac
-    #
+    # Test if the stripping phase must be skipped
+    if [ "$STRIP" = "0" ] && [[ `_IS_ ${this_script} stripping` ]] ; then
+      continue
+    fi
+
     # First append each name of the script files to a list (this will become
     # the names of the targets in the Makefile
     basicsystem="$basicsystem $this_script"
-    #
-    # A little customizing via sed scripts first..
-    if [[ $TEST = "0" ]]; then
-      # Drop any package checks..
-      sed -e '/make check/d' -e '/make test/d' -i $file
-    fi
-    case $this_script_BLOCKED in
-      *coreutils*) sed 's at set -e at set -e; set +h@' -i $file        ;;
-      *groff*)     sed "s@\*\*EDITME.*EDITME\*\*@$PAGE@" -i $file  ;;
-      *vim*)      sed '/vim -c/d' -i $file  ;;
-      *bash*)     sed '/exec /d' -i $file   ;;
-      *shadow*)   sed -e '/grpconv/d' -e '/pwconv/d' -e '/passwd root/d' -i $file
-      		  sed '/sed -i libtool/d' -i $file
-		  sed '/search_path/d'    -i $file
-        ;;
-      *glibc*)    sed '/tzselect/d' -i $file
-                  sed "s@\*\*EDITME.*EDITME\*\*@$TIMEZONE@" -i $file
-                  # Manipulate glibc's test to work with Makefile
-                  sed -e 's/glibc-check-log.*//' \
-                      -e 's at make -k check >@make -k check >glibc-check-log 2>\&1 || true\ngrep Error glibc-check-log || true@' -i $file
-        ;;
-      *binutils*) sed '/expect /d' -i $file
-                  if [[ $TOOLCHAINTEST = "0" ]]; then
-                    sed '/make check/d' -i $file
-                  fi
-        ;;
-      *gcc*)      # Ignore all gcc testing for now..
-                  sed -e '/make -k check/d' -i $file
-                  sed -e '/test_summary/d' -i $file
-        ;;
-      *texinfo*)  # This sucks as a way to trim a script
-                  sed -e '/cd \/usr/d' \
-                      -e '/rm dir/d' \
-                      -e '/for f in/d' \
-                      -e '/do inst/d' \
-                      -e '/done/d' -i $file
-        ;;
-    esac
 
     # Grab the name of the target, strip id number, XXX-script
     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
@@ -582,59 +543,15 @@
     # Keep the script file name
     this_script=`basename $file`
 
-    # Skipping scripts is done now so they are not included in the Makefile.
-    case $this_script in
-      *stripping*) continue   ;;
-      *grub*)      continue   ;;
-    esac
+    # Test if the stripping phase must be skipped
+    if [ "$STRIP" = "0" ] && [[ `_IS_ ${this_script} stripping` ]] ; then
+      continue
+    fi
 
     # First append each name of the script files to a list (this will become
     # the names of the targets in the Makefile
     basicsystem="$basicsystem $this_script"
 
-    #
-    # A little customizing via sed scripts first..
-    if [[ $TEST = "0" ]]; then
-      # Drop any package checks..
-      sed -e '/make check/d' -e '/make test/d' -i $file
-    fi
-    case $this_script_BLOCKED in
-      *coreutils*) sed 's at set -e at set -e; set +h@' -i $file        ;;
-      *groff*)    sed "s@\*\*EDITME.*EDITME\*\*@$PAGE@" -i $file  ;;
-      *vim*)      sed '/vim -c/d' -i $file      ;;
-      *bash*)     sed '/exec /d' -i $file       ;;
-      *shadow*)   sed -e '/grpconv/d' \
-                      -e '/pwconv/d' \
-		      -e '/passwd root/d' -i $file
-      		  sed  '/sed -i libtool/d' -i $file
-		  sed  '/search_path/d'    -i $file
-        ;;
-      *psmisc*)   # Build fails on creation of this link. <pidof> installed in sysvinit
-                  sed -e 's/^ln -s/#ln -s/' -i $file
-        ;;
-      *glibc*)    sed '/tzselect/d' -i $file
-                  sed "s@\*\*EDITME.*EDITME\*\*@$TIMEZONE@" -i $file
-                  # Manipulate glibc's test to work with Makefile
-                  sed -e 's/glibc-check-log.*//' -e 's at make -k check >@make -k check >glibc-check-log 2>\&1 || true\ngrep Error glibc-check-log || true@' -i $file
-        ;;
-      *binutils*) sed '/expect /d' -i $file
-                  if [[ $TOOLCHAINTEST = "0" ]]; then
-                    sed '/make check/d' -i $file
-                  fi
-        ;;
-      *gcc*)      # Ignore all gcc testing for now..
-                  sed -e '/make -k check/d' -i $file
-                  sed -e '/test_summary/d' -i $file
-        ;;
-      *texinfo*)  # This sucks as a way to trim a script
-                  sed -e '/cd \/usr/d' \
-                      -e '/rm dir/d' \
-                      -e '/for f in/d' \
-                      -e '/do inst/d' \
-                      -e '/done/d' -i $file
-        ;;
-    esac
-
     # Grab the name of the target, strip id number, XXX-script
     name=`echo $this_script | sed -e 's@[0-9]\{3\}-@@' \
                                   -e 's at temp-@@' \
@@ -659,14 +576,6 @@
         temp-perl) wrt_unpack3 "perl-$vrs.tar.*"    ;;
         *)         wrt_unpack3 "$name-$vrs.tar.*"   ;;
       esac
-      #
-      # Export a few 'config' vars..
-      case $this_script in
-        *glibc*) # For glibc we can set then TIMEZONE envar.
-                  echo -e '\t at echo "export TIMEZONE=$(TIMEZONE)" >> envars' >> $MKFILE.tmp   ;;
-        *groff*) # For Groff we need to set PAGE envar.
-                  echo -e '\t at echo "export PAGE=$(PAGE)" >> envars' >> $MKFILE.tmp           ;;
-      esac
     fi
     #
     wrt_run_as_root2 "${this_script}" "${file}"




More information about the alfs-log mailing list