Changeset 4845f38 for CLFS


Ignore:
Timestamp:
03/10/2006 01:55:19 PM (19 years ago)
Author:
George Boudreau <georgeb@…>
Branches:
experimental
Children:
1ce084e
Parents:
12a5707
Message:

Moved test for the existance of to the top of the case statement

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    r12a5707 r4845f38  
    372372      *whatnext*) continue     ;;
    373373      *settingenvironment*) sed 's@PS1=@set +h\nPS1=@' -i $file  ;;
    374       *kernel)
    375               sed "s|make mrproper|make mrproper\ncp $CONFIG .config|" -i $file
    376               # You cannot run menuconfig from within the makefile
    377               sed 's|menuconfig|oldconfig|'     -i $file
    378               #If defined include the keymap in the kernel
    379               if [[ -n "$KEYMAP" ]]; then
    380                 sed "s|^loadkeys -m.*>|loadkeys -m $KEYMAP >|" -i $file
    381               else
    382                 sed '/loadkeys -m/d'    -i $file
    383                 sed '/drivers\/char/d'  -i $file
    384               fi
    385               # if there is no kernel config file do not build the kernel
    386               [[ -z $CONFIG ]] && continue
     374      *kernel)   # if there is no kernel config file do not build the kernel
     375                [[ -z $CONFIG ]] && continue
     376                sed "s|make mrproper|make mrproper\ncp $CONFIG .config|" -i $file
     377                # You cannot run menuconfig from within the makefile
     378                sed 's|menuconfig|oldconfig|'     -i $file
     379                #If defined include the keymap in the kernel
     380                if [[ -n "$KEYMAP" ]]; then
     381                  sed "s|^loadkeys -m.*>|loadkeys -m $KEYMAP >|" -i $file
     382                else
     383                  sed '/loadkeys -m/d'    -i $file
     384                  sed '/drivers\/char/d'  -i $file
     385                fi
    387386          ;;
    388387    esac
     
    10181017      *grub*)     continue ;;
    10191018      *kernel)
     1019               # if there is no kernel config file do not build the kernel
     1020               [[ -z $CONFIG ]] && continue
    10201021               sed "s|make mrproper|make mrproper\ncp $CONFIG .config|" -i $file
    10211022               # You cannot run menuconfig from within the makefile
     
    10281029                 sed '/drivers\/char/d'  -i $file
    10291030               fi
    1030                # if there is no kernel config file do not build the kernel
    1031                [[ -z $CONFIG ]] && continue
    10321031         ;;
    10331032    esac
     
    10981097    case $this_script in
    10991098      *grub*)     continue  ;;
    1100       *kernel) cfg_file="/sources/`basename $CONFIG`"
     1099      *kernel)
     1100               # if there is no kernel config file do not build the kernel
     1101               [[ -z $CONFIG ]] && continue
     1102               cfg_file="/sources/`basename $CONFIG`"
    11011103               sed "s|make mrproper|make mrproper\ncp $cfg_file .config|" -i $file
    11021104               # You cannot run menuconfig from within the makefile
     
    11091111                 sed '/drivers\/char/d'  -i $file
    11101112               fi
    1111                # if there is no kernel config file do not build the kernel
    1112                [[ -z $CONFIG ]] && continue
    11131113         ;;
    11141114    esac
Note: See TracChangeset for help on using the changeset viewer.