Changeset c3c4e1d for CLFS


Ignore:
Timestamp:
03/19/2006 11:14:42 AM (19 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
experimental
Children:
ad71d98
Parents:
c0cbd50
Message:

Simplified unpack code due tar >= 1.5 prerequisite.
If both bz2 and gz formats of the same package are found in the sources dir, only the more recent one is unpacked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CLFS/master.sh

    rc0cbd50 rc3c4e1d  
    288288    # If $vrs isn't empty, we've got a package...
    289289    #
    290     [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar" &&  echo -e '\ttrue' >> $MKFILE.tmp
     290    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" &&  echo -e '\ttrue' >> $MKFILE.tmp
    291291    #
    292292    wrt_run_as_lfs "${this_script}" "${file}"
     
    340340    # Insert instructions for unpacking the package and to set the PKGDIR variable.
    341341    #
    342     [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar" && echo -e '\ttrue' >> $MKFILE.tmp
     342    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*" && echo -e '\ttrue' >> $MKFILE.tmp
    343343    #
    344344    wrt_run_as_lfs "${this_script}" "${file}"
     
    412412    # Insert instructions for unpacking the package and changing directories
    413413    #
    414     [[ "$vrs" != "" ]] && wrt_unpack3 "$name-$vrs.tar.*"
     414    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
    415415    #
    416416    # Select a script execution method
     
    489489    if [ "$vrs" != "" ] ; then
    490490      case $this_script in
    491         *util-linux)    wrt_unpack  "$name-$vrs.tar"
     491        *util-linux)    wrt_unpack  "$name-$vrs.tar.*"
    492492                        echo -e '\ttrue' >> $MKFILE.tmp
    493493            ;;
     
    552552    #
    553553    case $name in
    554       tcl)    wrt_unpack2 "$name$vrs-src.tar" ;;
    555       *)      wrt_unpack2 "$name-$vrs.tar"    ;;
     554      tcl)    wrt_unpack2 "$name$vrs-src.tar.*" ;;
     555      *)      wrt_unpack2 "$name-$vrs.tar.*"    ;;
    556556    esac
    557557    #
     
    605605    #
    606606    case $name in
    607       tcl)    wrt_unpack4 "$name$vrs-src.tar.*" ;;
    608       *)      wrt_unpack4 "$name-$vrs.tar.*"    ;;
     607      tcl)    wrt_unpack3 "$name$vrs-src.tar.*" ;;
     608      *)      wrt_unpack3 "$name-$vrs.tar.*"    ;;
    609609    esac
    610610    #
     
    819819    if [ "$vrs" != "" ] ; then
    820820      case $name in
    821         temp-perl) wrt_unpack4 "perl-$vrs.tar.*"    ;;
    822         *)         wrt_unpack4 "$name-$vrs.tar.*"   ;;
     821        temp-perl) wrt_unpack3 "perl-$vrs.tar.*"    ;;
     822        *)         wrt_unpack3 "$name-$vrs.tar.*"   ;;
    823823      esac
    824824      #
     
    986986    # If $vrs isn't empty, we've got a package...
    987987    #
    988     [[ "$vrs" != "" ]] && wrt_unpack4 "$name-$vrs.tar.*"
     988    [[ "$vrs" != "" ]] && wrt_unpack3 "$name-$vrs.tar.*"
    989989    #
    990990    wrt_run_as_root2 "${this_script}" "${file}"
     
    10571057    # Insert instructions for unpacking the package and changing directories
    10581058    #
    1059     [[ "$vrs" != "" ]] && wrt_unpack3 "$name-$vrs.tar.*"
     1059    [[ "$vrs" != "" ]] && wrt_unpack "$name-$vrs.tar.*"
    10601060    #
    10611061    # Select a script execution method
     
    11011101    case $this_script in
    11021102      *grub*)     continue  ;;
    1103       *kernel) 
     1103      *kernel)
    11041104               # if there is no kernel config file do not build the kernel
    11051105               [[ -z $CONFIG ]] && continue
     
    11421142    # Insert instructions for unpacking the package and changing directories
    11431143    #
    1144     [[ "$vrs" != "" ]] && wrt_unpack4 "$name-$vrs.tar.*"
     1144    [[ "$vrs" != "" ]] && wrt_unpack3 "$name-$vrs.tar.*"
    11451145    #
    11461146    # Select a script execution method
Note: See TracChangeset for help on using the changeset viewer.