Changeset 401f81e


Ignore:
Timestamp:
08/16/2006 05:42:54 PM (18 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
2.3, 2.3.x, 2.4, ablfs, ablfs-more, legacy, new_features, trunk
Children:
fdb330a
Parents:
5be3651
Message:

Ported Makefile clean-up and 0/1 to n/y migration code from experimental.
There is no obvious bugs, let users to find hidden bugs.

Files:
20 edited

Legend:

Unmodified
Added
Removed
  • CLFS/clfs.xsl

    r5be3651 r401f81e  
    2929
    3030  <!-- Bomb on test suites failures?
    31        0 = no, I want to build the full system and review the logs
    32        1 = yes, bomb at the first test suite failure to can review the build dir
     31       n = no, I want to build the full system and review the logs
     32       y = yes, bomb at the first test suite failure to can review the build dir
    3333  -->
    34   <xsl:param name="bomb-testsuite" select="0"/>
     34  <xsl:param name="bomb-testsuite" select="n"/>
    3535
    3636  <!-- Install vim-lang package? -->
    37   <xsl:param name="vim-lang" select="1"/>
     37  <xsl:param name="vim-lang" select="y"/>
    3838
    3939  <!-- Time zone -->
     
    103103            <xsl:if test="sect2[@role='installation']">
    104104              <xsl:text>cd $PKGDIR&#xA;</xsl:text>
    105               <xsl:if test="@id='ch-system-vim' and $vim-lang = '1'">
     105              <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'">
    106106                <xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1&#xA;</xsl:text>
    107107              </xsl:if>
     
    126126            ($testsuite = '2' or $testsuite = '3')">
    127127      <xsl:choose>
    128         <xsl:when test="$bomb-testsuite = '0'">
     128        <xsl:when test="$bomb-testsuite = 'n'">
    129129          <xsl:value-of select="substring-before(string(),'make')"/>
    130130          <xsl:text>make -k</xsl:text>
     
    198198            <xsl:if test="contains(string(),'check')">
    199199              <xsl:choose>
    200                 <xsl:when test="$bomb-testsuite = '0'">
     200                <xsl:when test="$bomb-testsuite = 'n'">
    201201                  <xsl:value-of select="substring-before(string(),'check')"/>
    202202                  <xsl:text>-k check</xsl:text>
     
    223223          <xsl:when test="$testsuite != '0'">
    224224            <xsl:choose>
    225               <xsl:when test="$bomb-testsuite = '0'">
     225              <xsl:when test="$bomb-testsuite = 'n'">
    226226                <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    227227              </xsl:when>
     
    243243            <xsl:value-of select="substring-before(string(),'&gt;g')"/>
    244244            <xsl:choose>
    245               <xsl:when test="$bomb-testsuite = '0'">
     245              <xsl:when test="$bomb-testsuite = 'n'">
    246246                <xsl:text>&gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    247247              </xsl:when>
  • CLFS/config

    r5be3651 r401f81e  
    5555
    5656# Get the kernel package and patches even if no configutation file
    57 # has been supplied? 0(no)/1(yes)
    58 GETKERNEL=0
     57# has been supplied? n(no)/y(yes)
     58GETKERNEL=n
    5959
    6060#--- Book's sources directory
  • CLFS/master.sh

    r5be3651 r401f81e  
    55###          FUNCTIONS          ###
    66###################################
    7 
    87
    98
     
    499498    # Skip alsp temp-perl for iterative runs
    500499    case $this_script in
    501       *stripping*) [[ "$STRIP" = "0" ]] && continue ;;
     500      *stripping*) [[ "$STRIP" = "n" ]] && continue ;;
    502501      *temp-perl*) [[ -n "$N" ]] && continue ;;
    503502    esac
     
    609608    # Skip alsp temp-perl for iterative runs
    610609    case $this_script in
    611       *stripping*) [[ "$STRIP" = "0" ]] && continue ;;
     610      *stripping*) [[ "$STRIP" = "n" ]] && continue ;;
    612611      *temp-perl*) [[ -n "$N" ]] && continue ;;
    613612    esac
     
    884883
    885884  # Add SBU-disk_usage report target if required
    886   if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
     885  if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi
    887886
    888887}
     
    963962
    964963  # Add SBU-disk_usage report target if required
    965   if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
     964  if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi
    966965
    967966}
     
    987986    final_system_Makefiles         # $basicsystem
    988987    # Add the iterations targets, if needed
    989     [[ "$COMPARE" != "0" ]] && wrt_compare_targets
     988    [[ "$COMPARE" = "y" ]] && wrt_compare_targets
    990989    bootscripts_Makefiles          # $bootscripttools
    991990    bootable_Makefiles             # $bootabletools
     
    997996    bm_final_system_Makefiles      # $basicsystem
    998997    # Add the iterations targets, if needed
    999     [[ "$COMPARE" != "0" ]] && wrt_compare_targets
     998    [[ "$COMPARE" = "y" ]] && wrt_compare_targets
    1000999    bm_bootscripts_Makefiles       # $bootscipttools
    10011000    bm_bootable_Makefiles          # $bootabletoosl
     
    10101009$HEADER
    10111010
    1012 SRC= /sources
    1013 MOUNT_PT= $BUILDDIR
    1014 PKG_LST= $PKG_LST
    1015 LUSER= $LUSER
    1016 LGROUP= $LGROUP
     1011SRC          = /sources
     1012MOUNT_PT     = $BUILDDIR
     1013PKG_LST      = $PKG_LST
     1014LUSER        = $LUSER
     1015LGROUP       = $LGROUP
     1016SCRIPT_ROOT  = $SCRIPT_ROOT
     1017
     1018BASEDIR      = \$(MOUNT_PT)
     1019SRCSDIR      = \$(BASEDIR)/sources
     1020CMDSDIR      = \$(BASEDIR)/\$(SCRIPT_ROOT)/$PROGNAME-commands
     1021LOGDIR       = \$(BASEDIR)/\$(SCRIPT_ROOT)/logs
     1022TESTLOGDIR   = \$(BASEDIR)/\$(SCRIPT_ROOT)/test-logs
     1023
     1024crSRCSDIR    = /sources
     1025crCMDSDIR    = /\$(SCRIPT_ROOT)/$PROGNAME-commands
     1026crLOGDIR     = /\$(SCRIPT_ROOT)/logs
     1027crTESTLOGDIR = /\$(SCRIPT_ROOT)/test-logs
     1028
     1029SU_LUSER     = su - \$(LUSER) -c
     1030LUSER_HOME   = /home/\$(LUSER)
     1031PRT_DU       = echo -e "\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n"
     1032PRT_DU_CR    = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) \$(MOUNT_PT)\`\n"
     1033
    10171034
    10181035include makefile-functions
  • CLFS2/clfs2.xsl

    r5be3651 r401f81e  
    1818
    1919  <!-- Install vim-lang package? -->
    20   <xsl:param name="vim-lang" select="1"/>
     20  <xsl:param name="vim-lang" select="y"/>
    2121
    2222  <!-- Time zone -->
     
    7676            <xsl:if test="sect2[@role='installation']">
    7777              <xsl:text>cd $PKGDIR&#xA;</xsl:text>
    78               <xsl:if test="@id='ch-system-vim' and $vim-lang = '1'">
     78              <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'">
    7979                <xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1&#xA;</xsl:text>
    8080              </xsl:if>
  • CLFS2/config

    r5be3651 r401f81e  
    3434
    3535# Get the kernel package and patches even if no configutation file
    36 # has been supplied? 0(no)/1(yes)
    37 GETKERNEL=0
     36# has been supplied? n(no)/y(yes)
     37GETKERNEL=n
    3838
    3939#--- Book's sources directory
  • CLFS2/master.sh

    r5be3651 r401f81e  
    216216    # Skip alsp temp-perl for iterative runs
    217217    case $this_script in
    218       *stripping*) [[ "$STRIP" = "0" ]] && continue ;;
     218      *stripping*) [[ "$STRIP" = "n" ]] && continue ;;
    219219    esac
    220220
     
    404404
    405405  # Add SBU-disk_usage report target if required
    406   if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
     406  if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi
    407407
    408408}
     
    430430$HEADER
    431431
    432 SRC= /sources
    433 MOUNT_PT= $BUILDDIR
    434 PKG_LST= $PKG_LST
    435 LUSER= $LUSER
    436 LGROUP= $LGROUP
     432SRC         = /sources
     433MOUNT_PT    = $BUILDDIR
     434PKG_LST     = $PKG_LST
     435LUSER       = $LUSER
     436LGROUP      = $LGROUP
     437SCRIPT_ROOT = $SCRIPT_ROOT
     438
     439BASEDIR    = \$(MOUNT_PT)
     440SRCSDIR    = \$(BASEDIR)/sources
     441CMDSDIR    = \$(BASEDIR)/\$(SCRIPT_ROOT)/$PROGNAME-commands
     442LOGDIR     = \$(BASEDIR)/\$(SCRIPT_ROOT)/logs
     443TESTLOGDIR = \$(BASEDIR)/\$(SCRIPT_ROOT)/test-logs
     444
     445SU_LUSER   = su - \$(LUSER) -c
     446PRT_DU     = echo -e "\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n"
     447LUSER_HOME = /home/\$(LUSER)
    437448
    438449include makefile-functions
  • Config.in

    r5be3651 r401f81e  
    5959
    6060        config  BRANCH_ID
    61                 string  "Branch (mandatory)"
     61                string  "Book Version (mandatory)"
    6262                default "**EDIT ME**"
    6363                depends BRANCH
     
    251251
    252252        #--- HLFS specific params
    253         config  CONFIG_GRSECURITY_HOST
     253        config  GRSECURITY_HOST
    254254                bool    "Building on grsecurity enabled host?"
    255255                default n
     
    357357                        #-- The directory where the created system will be located.
    358358
    359         config  CONFIG_GETPKG
     359        config  GETPKG
    360360                bool "Retrieve source files"
    361361                default n
     
    369369                string "Package Archive Directory"
    370370                default "$SRC_ARCHIVE"
    371                 depends CONFIG_GETPKG
     371                depends GETPKG
    372372                help
    373373                        #-- A local archive for packages/file (not $BUILDDIR/sources)
     
    376376                        #   if the user has the right priviledges.
    377377
    378         config  CONFIG_GETKERNEL
     378        config  GETKERNEL
    379379                bool    "Always retrieve kernel package"
    380380                default n
    381                 depends CONFIG_GETPKG
     381                depends GETPKG
    382382                help
    383383                        #-- Get the kernel package and patches even if no configuration
    384384                        #   file has been supplied.
    385385
    386         config  CONFIG_RUNMAKE
     386        config  RUNMAKE
    387387                bool    "Run the makefile"
    388388                default n
     
    390390                        #-- Automatically run the makefile once it has been created
    391391
    392         config  CONFIG_REBUILD
     392        config  CLEAN
    393393                bool    "Rebuild files"
    394394                default n
     
    410410                bool    "Run testsuites"
    411411                depends !BOOK_CLFS2
    412                 default n
     412                default y
    413413                help
    414414                        #-- Run test suites
     
    455455                prompt  "Flavour ->"
    456456                depends CONFIG_TESTS
    457                 default NO_BOMB
    458457
    459458                config  NO_BOMB
    460459                        bool    "Don't stop on test suite failures"
     460                        default n
    461461
    462462                config  BOMB
    463463                        bool    "Abort the build at the first test suite failure"
     464                        default n
    464465        endchoice
    465466
    466467        config  BOMB_TEST
    467                 int
    468                 default "0"     if NO_BOMB
    469                 default "1"     if BOMB
     468                bool
     469                default BOMB
     470
    470471        #--- End Test Suites
    471472
     
    516517        #--- End Kernel
    517518
    518         config  CONFIG_STRIP
     519        config  STRIP
    519520                bool "Strip Installed Binaries/Libraries"
    520521                default y
    521522
    522         config  CONFIG_VIMLANG
     523        config  VIMLANG
    523524                bool "Install vim-lang package"
    524525                default y
    525526                help
    526                         #-- install the optional vim-lang package
     527                        #-- Install the optional vim-lang package
    527528
    528529        config  TIMEZONE
     
    572573        depends on !BOOK_BLFS
    573574
    574         config  CONFIG_REPORT
     575        config  REPORT
    575576                bool "Create SBU and disk usage report"
    576577                default y
    577578
    578579        #--- ICA/farce
    579         config  CONFIG_COMPARE
     580        config  COMPARE
    580581                bool "Run comparison analysis on final stage"
    581582                depends !BOOK_CLFS2
     
    597598
    598599        config  ITERATIONS
    599                 int     "Number of test runs (2,3,4,5)"
    600                 depends on CONFIG_COMPARE
     600                int     "Number of test runs (2,3,4,5)" if COMPARE
     601                depends on COMPARE
    601602                range   2 5
    602603                default 3
    603604
    604         config  CONFIG_ICA
     605        config  RUN_ICA
    605606                bool    "ICA testing"
    606                 depends on CONFIG_COMPARE
     607                depends on COMPARE
    607608                default y
    608609                help
    609610                        #-- Run ICA testing
    610611
    611         config  CONFIG_FARCE
     612        config  RUN_FARCE
    612613                bool    "farce testing"
    613                 depends on CONFIG_COMPARE
     614                depends on COMPARE
    614615                default n
    615616                help
     
    668669#               default "none"
    669670#               depends CONFIG_BLFS_CMDS
    670 
    671 
    672 # convert CONFIG_XXXX n/y to XXXX 0/1
    673 
    674         config  GRSECURITY_HOST
    675                 int
    676                 default 0       if !CONFIG_GRSECURITY_HOST
    677                 default 1       if  CONFIG_GRSECURITY_HOST
    678 
    679         config  COMPARE
    680                 int
    681                 default 0       if !CONFIG_COMPARE
    682                 default 1       if  CONFIG_COMPARE
    683 
    684         config  GETPKG
    685                 int
    686                 default 0       if !CONFIG_GETPKG
    687                 default 1       if  CONFIG_GETPKG
    688 
    689         config  GETKERNEL
    690                 int
    691                 default 0       if !CONFIG_GETKERNEL
    692                 default 1       if  CONFIG_GETKERNEL
    693 
    694         config  RUNMAKE
    695                 int
    696                 default 0       if !CONFIG_RUNMAKE
    697                 default 1       if  CONFIG_RUNMAKE
    698 
    699         config  STRIP
    700                 int
    701                 default 0       if !CONFIG_STRIP
    702                 default 1       if  CONFIG_STRIP
    703 
    704         config  REPORT
    705                 int
    706                 default 0       if !CONFIG_REPORT
    707                 default 1       if  CONFIG_REPORT
    708 
    709         config  VIMLANG
    710                 int
    711                 default 0       if !CONFIG_VIMLANG
    712                 default 1       if  CONFIG_VIMLANG
    713 
    714         config  RUN_ICA
    715                 int
    716                 default 0       if !CONFIG_ICA
    717                 default 1       if  CONFIG_ICA
    718 
    719         config  RUN_FARCE
    720                 int
    721                 default 0       if !CONFIG_FARCE
    722                 default 1       if  CONFIG_FARCE
    723 
    724         config  CLEAN
    725                 int
    726                 default 0       if !CONFIG_REBUILD
    727                 default 1       if  CONFIG_REBUILD
  • HLFS/config

    r5be3651 r401f81e  
    1010MODEL=glibc
    1111
    12 #--- The host system has grsecurity options enabled? 0(no)/1(yes)
    13 GRSECURITY_HOST=0
     12#--- The host system has grsecurity options enabled? n(no)/y(yes)
     13GRSECURITY_HOST=n
    1414
    1515#--- Unprivileged user and group name
     
    2525
    2626# Get the kernel package and patches even if no configutation file
    27 # has been supplied? 0(no)/1(yes)
    28 GETKERNEL=0
     27# has been supplied? n(no)/y(yes)
     28GETKERNEL=n
    2929
    3030#--- Book's sources directory
  • HLFS/hlfs.xsl

    r5be3651 r401f81e  
    1818
    1919  <!-- Is the host kernel using grsecurity? -->
    20   <xsl:param name="grsecurity_host" select="0"/>
     20  <xsl:param name="grsecurity_host" select="n"/>
    2121
    2222  <!-- Compile the keymap into the kernel? -->
     
    3232
    3333  <!-- Bomb on test suites failures?
    34        0 = no, I want to build the full system and review the logs
    35        1 = yes, bomb at the first test suite failure to can review the build dir
     34       n = no, I want to build the full system and review the logs
     35       y = yes, bomb at the first test suite failure to can review the build dir
    3636  -->
    37   <xsl:param name="bomb-testsuite" select="0"/>
     37  <xsl:param name="bomb-testsuite" select="n"/>
    3838
    3939  <!-- Time zone -->
     
    144144                  ($testsuite = '2' or $testsuite = '3')">
    145145      <xsl:choose>
    146         <xsl:when test="$bomb-testsuite = '0'">
     146        <xsl:when test="$bomb-testsuite = 'n'">
    147147          <xsl:value-of select="substring-before(string(),'make')"/>
    148148          <xsl:text>make -k</xsl:text>
     
    181181      <xsl:when test="ancestor::sect1[@id='ch-system-kernfs'] and
    182182                contains(string(),'sysctl')
    183                 and $grsecurity_host ='0'"/>
     183                and $grsecurity_host ='n'"/>
    184184      <!-- Setting $LC_ALL and $LANG for /etc/profile -->
    185185      <xsl:when test="ancestor::sect1[@id='bootable-profile'] and
     
    231231            <xsl:if test="contains(string(),'check')">
    232232              <xsl:choose>
    233                 <xsl:when test="$bomb-testsuite = '0'">
     233                <xsl:when test="$bomb-testsuite = 'n'">
    234234                  <xsl:value-of select="substring-before(string(),'check')"/>
    235235                  <xsl:text>-k check</xsl:text>
     
    256256            <xsl:apply-templates/>
    257257            <xsl:choose>
    258               <xsl:when test="$bomb-testsuite = '0'">
     258              <xsl:when test="$bomb-testsuite = 'n'">
    259259                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    260260              </xsl:when>
     
    276276            <xsl:value-of select="substring-before(string(),'&gt; glibc-')"/>
    277277            <xsl:choose>
    278               <xsl:when test="$bomb-testsuite = '0'">
     278              <xsl:when test="$bomb-testsuite = 'n'">
    279279                <xsl:text> &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    280280              </xsl:when>
  • HLFS/master.sh

    r5be3651 r401f81e  
    1414  local this_script=$2
    1515  local  tc_phase
    16 
     16  local binutil_tarball
     17  local gcc_core_tarball
     18 
    1719  echo "${tab_}${tab_}${GREEN}toolchain ${L_arrow}${toolchain}${R_arrow}"
    1820
    1921  #
    2022  # Safe method to remove existing toolchain dirs
    21   pkg_tarball=$(get_package_tarball_name "binutils")
    22   wrt_remove_existing_dirs  "$pkg_tarball"
    23   pkg_tarball=$(get_package_tarball_name "gcc-core")
    24   wrt_remove_existing_dirs  "$pkg_tarball"
     23  binutil_tarball=$(get_package_tarball_name "binutils")
     24  gcc_core_tarball=$(get_package_tarball_name "gcc-core")
     25(
     26cat << EOF
     27        @\$(call remove_existing_dirs,$binutil_tarball)
     28        @\$(call remove_existing_dirs,$gcc_core_tarball)
     29EOF
     30) >> $MKFILE.tmp
     31
    2532  #
    2633  # Manually remove the toolchain directories..
     
    5461  esac
    5562  #
    56   # Safe method to remove packages unpacked while inside the toolchain script
    57   pkg_tarball=$(get_package_tarball_name "binutils")
    58   wrt_remove_existing_dirs  "$pkg_tarball"
    59   pkg_tarball=$(get_package_tarball_name "gcc-core")
    60   wrt_remove_existing_dirs  "$pkg_tarball"
     63(
     64cat << EOF
     65        @\$(call remove_existing_dirs,$binutil_tarball)
     66        @\$(call remove_existing_dirs,$gcc_core_tarball)
     67EOF
     68) >> $MKFILE.tmp
     69
    6170  #
    6271  # Manually remove the toolchain directories..
     
    167176      *introduction* ) continue ;;
    168177        # Test if the stripping phase must be skipped
    169       *stripping* ) [[ "$STRIP" = "0" ]] && continue ;;
     178      *stripping* ) [[ "$STRIP" = "n" ]] && continue ;;
    170179      *) ;;
    171180    esac
     
    279288      *chroot* )  continue ;;
    280289        # Test if the stripping phase must be skipped
    281       *-stripping* )  [[ "$STRIP" = "0" ]] && continue ;;
     290      *-stripping* )  [[ "$STRIP" = "n" ]] && continue ;;
    282291    esac
    283292
     
    457466
    458467  # Add SBU-disk_usage report target if required
    459   if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
     468  if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi
    460469}
    461470
     
    474483  chapter6_Makefiles
    475484  # Add the iterations targets, if needed
    476   [[ "$COMPARE" != "0" ]] && wrt_compare_targets
     485  [[ "$COMPARE" = "y" ]] && wrt_compare_targets
    477486  chapter7_Makefiles
    478487
     
    483492$HEADER
    484493
    485 SRC= /sources
    486 MOUNT_PT= $BUILDDIR
    487 PKG_LST= $PKG_LST
    488 LUSER= $LUSER
    489 LGROUP= $LGROUP
     494SRC          = /sources
     495MOUNT_PT     = $BUILDDIR
     496PKG_LST      = $PKG_LST
     497LUSER        = $LUSER
     498LGROUP       = $LGROUP
     499SCRIPT_ROOT  = $SCRIPT_ROOT
     500
     501BASEDIR      = \$(MOUNT_PT)
     502SRCSDIR      = \$(BASEDIR)/sources
     503CMDSDIR      = \$(BASEDIR)/\$(SCRIPT_ROOT)/$PROGNAME-commands
     504LOGDIR       = \$(BASEDIR)/\$(SCRIPT_ROOT)/logs
     505TESTLOGDIR   = \$(BASEDIR)/\$(SCRIPT_ROOT)/test-logs
     506
     507crSRCSDIR    = /sources
     508crCMDSDIR    = /\$(SCRIPT_ROOT)/$PROGNAME-commands
     509crLOGDIR     = /\$(SCRIPT_ROOT)/logs
     510crTESTLOGDIR = /\$(SCRIPT_ROOT)/test-logs
     511
     512SU_LUSER     = su - \$(LUSER) -c
     513LUSER_HOME   = /home/\$(LUSER)
     514PRT_DU       = echo -e "\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n"
     515PRT_DU_CR    = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) \$(MOUNT_PT)\`\n"
    490516
    491517include makefile-functions
  • LFS/config

    r5be3651 r401f81e  
    1919
    2020# Get the kernel package and patches even if no configuration file
    21 # has been supplied? 0(no)/1(yes)
    22 GETKERNEL=0
     21# has been supplied? n(no)/y(yes)
     22GETKERNEL=n
    2323
    2424#--- Book's sources directory
  • LFS/lfs.xsl

    r5be3651 r401f81e  
    2323
    2424  <!-- Bomb on test suites failures?
    25        0 = no, I want to build the full system and review the logs
    26        1 = yes, bomb at the first test suite failure to can review the build dir
     25       n = no, I want to build the full system and review the logs
     26       y = yes, bomb at the first test suite failure to can review the build dir
    2727  -->
    28   <xsl:param name="bomb-testsuite" select="0"/>
     28  <xsl:param name="bomb-testsuite" select="n"/>
    2929
    3030  <!-- Install vim-lang package? -->
    31   <xsl:param name="vim-lang" select="1"/>
     31  <xsl:param name="vim-lang" select="y"/>
    3232
    3333  <!-- Time zone -->
     
    9191        <xsl:if test="sect2[@role='installation']">
    9292          <xsl:text>cd $PKGDIR&#xA;</xsl:text>
    93           <xsl:if test="@id='ch-system-vim' and $vim-lang = '1'">
     93          <xsl:if test="@id='ch-system-vim' and $vim-lang = 'y'">
    9494            <xsl:text>tar -xvf ../vim-&vim-version;-lang.* --strip-components=1&#xA;</xsl:text>
    9595          </xsl:if>
     
    118118            $testsuite = '3')">
    119119      <xsl:choose>
    120         <xsl:when test="$bomb-testsuite = '0'">
     120        <xsl:when test="$bomb-testsuite = 'n'">
    121121          <xsl:value-of select="substring-before(string(),'make')"/>
    122122          <xsl:text>make -k</xsl:text>
     
    186186            <xsl:if test="contains(string(),'check')">
    187187              <xsl:choose>
    188                 <xsl:when test="$bomb-testsuite = '0'">
     188                <xsl:when test="$bomb-testsuite = 'n'">
    189189                  <xsl:value-of select="substring-before(string(),'check')"/>
    190190                  <xsl:text>-k check</xsl:text>
     
    213213                    $testsuite = '3'">
    214214            <xsl:choose>
    215               <xsl:when test="$bomb-testsuite = '0'">
     215              <xsl:when test="$bomb-testsuite = 'n'">
    216216                <xsl:text>make -k check &gt;&gt; $TEST_LOG 2&gt;&amp;1 || true&#xA;</xsl:text>
    217217              </xsl:when>
  • LFS/master.sh

    r5be3651 r401f81e  
    66###         FUNCTIONS           ###
    77###################################
    8 
    98
    109
     
    8180      *expect)    [[ "${TEST}" = "0" ]] && continue ;;
    8281      *dejagnu)   [[ "${TEST}" = "0" ]] && continue ;;
    83       *stripping) [[ "${STRIP}" = "0" ]] && continue ;;
     82      *stripping) [[ "${STRIP}" = "n" ]] && continue ;;
    8483      *glibc)     [[ "${TEST}" = "3" ]] && \
    8584                  sed -i 's@/usr/lib/locale@/tools/lib/locale@' $file ;;
     
    178177    case "${this_script}" in
    179178      *chroot)      continue ;;
    180       *stripping*) [[ "${STRIP}" = "0" ]] && continue ;;
     179      *stripping*) [[ "${STRIP}" = "n" ]] && continue ;;
    181180    esac
    182181
     
    336335
    337336  # Add SBU-disk_usage report target if required
    338   if [[ "$REPORT" = "1" ]] ; then wrt_report ; fi
     337  if [[ "$REPORT" = "y" ]] ; then wrt_report ; fi
    339338}
    340339
     
    353352  chapter6_Makefiles
    354353  # Add the iterations targets, if needed
    355   [[ "$COMPARE" != "0" ]] && wrt_compare_targets
     354  [[ "$COMPARE" = "y" ]] && wrt_compare_targets
    356355  chapter789_Makefiles
    357356
     
    363362$HEADER
    364363
    365 SRC= /sources
    366 MOUNT_PT= $BUILDDIR
    367 PKG_LST= $PKG_LST
    368 LUSER= $LUSER
    369 LGROUP= $LGROUP
     364SRC          = /sources
     365MOUNT_PT     = $BUILDDIR
     366PKG_LST      = $PKG_LST
     367LUSER        = $LUSER
     368LGROUP       = $LGROUP
     369SCRIPT_ROOT  = $SCRIPT_ROOT
     370
     371BASEDIR      = \$(MOUNT_PT)
     372SRCSDIR      = \$(BASEDIR)/sources
     373CMDSDIR      = \$(BASEDIR)/\$(SCRIPT_ROOT)/$PROGNAME-commands
     374LOGDIR       = \$(BASEDIR)/\$(SCRIPT_ROOT)/logs
     375TESTLOGDIR   = \$(BASEDIR)/\$(SCRIPT_ROOT)/test-logs
     376
     377crSRCSDIR    = /sources
     378crCMDSDIR    = /\$(SCRIPT_ROOT)/$PROGNAME-commands
     379crLOGDIR     = /\$(SCRIPT_ROOT)/logs
     380crTESTLOGDIR = /\$(SCRIPT_ROOT)/test-logs
     381
     382SU_LUSER     = su - \$(LUSER) -c
     383LUSER_HOME   = /home/\$(LUSER)
     384PRT_DU       = echo -e "\nKB: \`du -skx --exclude=jhalfs \$(MOUNT_PT)\`\n"
     385PRT_DU_CR    = echo -e "\nKB: \`du -skx --exclude=\$(SCRIPT_ROOT) \$(MOUNT_PT)\`\n"
     386
    370387
    371388include makefile-functions
  • Makefile

    r5be3651 r401f81e  
    88
    99all: menuconfig
     10        @clear
    1011        @touch using_menuconfig
    1112        @`grep RUN_ME configuration | sed -e 's@RUN_ME=\"@@' -e 's@\"@@' ` || rm -f using_menuconfig
  • common/common-functions

    r5be3651 r401f81e  
    261261}
    262262
    263 #----------------------------------#
    264 wrt_remove_existing_dirs() {       #
    265 #----------------------------------#
    266   local PKG_NAME=$1
    267 (
    268 cat << EOF
    269         @PKG_PATH=\`ls -t \$(MOUNT_PT)\$(SRC)/${PKG_NAME} | head -n1\` && \\
    270         ROOT=\`tar -tf \$\$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'\` && \\
    271         [[ -n \$\$ROOT ]] && \\
    272         rm -rf \$(MOUNT_PT)\$(SRC)/\$\$ROOT && \\
    273         if [ -e \$(MOUNT_PT)\$(SRC)/${PKG_NAME%-*}-build ]; then \\
    274                 rm -rf \$(MOUNT_PT)\$(SRC)/${PKG_NAME%-*}-build; \\
    275         fi;
    276 EOF
    277 ) >> $MKFILE.tmp
    278 }
    279 
    280 #----------------------------------#
    281 wrt_remove_existing_dirs2() {      #
    282 #----------------------------------#
    283   local PKG_NAME=$1
    284 (
    285 cat << EOF
    286         @PKG_PATH=\`ls -t \$(SRC)/${PKG_NAME} | head -n1\` && \\
    287         ROOT=\`tar -tf \$\$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'\` && \\
    288         [[ -n \$\$ROOT ]] && \\
    289         rm -rf \$(SRC)/\$\$ROOT && \\
    290         if [ -e \$(SRC)/${PKG_NAME%-*}-build ]; then \\
    291                 rm -rf \$(SRC)/${PKG_NAME%-*}-build; \\
    292         fi;
    293 EOF
    294 ) >> $MKFILE.tmp
    295 }
    296 
    297 
    298 
    299 #----------------------------------#
    300 wrt_unpack() {                     # Unpack and set 'ROOT' var
    301 #----------------------------------#
    302   local FILE=$1
    303   local optSAVE_PREVIOUS=$2
    304 
    305   if [ "${optSAVE_PREVIOUS}" != "1" ]; then
    306     wrt_remove_existing_dirs "$FILE"
    307   fi
    308 (
    309 cat << EOF
    310         @\$(call unpack,$FILE)
    311         @ROOT=\`head -n1 \$(MOUNT_PT)\$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
    312         echo "export PKGDIR=\$(MOUNT_PT)\$(SRC)/\$\$ROOT" > envars && \\
    313         chown -R \$(LUSER) \$(MOUNT_PT)\$(SRC)/\$\$ROOT
    314 EOF
    315 ) >> $MKFILE.tmp
    316 }
    317 
    318 
    319 #----------------------------------#
    320 wrt_unpack2() {                    #
    321 #----------------------------------#
    322   local FILE=$1
    323   local optSAVE_PREVIOUS=$2
    324 
    325   if [ "${optSAVE_PREVIOUS}" != "1" ]; then
    326     wrt_remove_existing_dirs "$FILE"
    327   fi
    328 (
    329 cat  << EOF
    330         @\$(call unpack2,$FILE)
    331         @ROOT=\`head -n1 \$(MOUNT_PT)\$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
    332         echo "export PKGDIR=\$(SRC)/\$\$ROOT" > envars
    333 EOF
    334 ) >> $MKFILE.tmp
    335 }
    336 
    337 
    338 #----------------------------------#
    339 wrt_unpack3() {                    #
    340 #----------------------------------#
    341   local FILE=$1
    342   local optSAVE_PREVIOUS=$2
    343 
    344   if [ "${optSAVE_PREVIOUS}" != "1" ]; then
    345     wrt_remove_existing_dirs2 "$FILE"
    346   fi
    347 (
    348 cat  << EOF
    349         @\$(call unpack3,$FILE)
    350         @ROOT=\`head -n1 \$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
    351         echo "export PKGDIR=\$(SRC)/\$\$ROOT" > envars
    352 EOF
    353 ) >> $MKFILE.tmp
    354 }
    355263
    356264#----------------------------------#
     
    392300
    393301#----------------------------------#
     302wrt_copy_fstab() {                 #
     303#----------------------------------#
     304  local i=$1
     305(
     306    cat << EOF
     307        @cp -v $FSTAB \$(MOUNT_PT)/etc/fstab >>logs/$i 2>&1
     308EOF
     309) >> $MKFILE.tmp
     310}
     311
     312
     313#----------------------------------#
     314wrt_copy_fstab2() {                #
     315#----------------------------------#
     316  local i=$1
     317(
     318    cat << EOF
     319        @cp -v /sources/fstab /etc/fstab >>logs/$i 2>&1
     320EOF
     321) >> $MKFILE.tmp
     322}
     323
     324
     325#----------------------------------#
     326wrt_report() {                     #
     327#----------------------------------#
     328(
     329cat << EOF
     330
     331create-sbu_du-report:  $PREV
     332        @\$(call echo_message, Building)
     333        @./create-sbu_du-report.sh logs $VERSION
     334        @\$(call echo_report,$VERSION-SBU_DU-$(date --iso-8601).report)
     335        @touch  \$@
     336EOF
     337) >> $MKFILE.tmp
     338
     339chapter789="$chapter789 create-sbu_du-report"
     340}
     341
     342unset wrt_unpack
     343#----------------------------------#
     344wrt_unpack() {                     # Unpack and set 'ROOT' var
     345#----------------------------------#
     346  local FILE=$1
     347  local optSAVE_PREVIOUS=$2
     348
     349  if [[ "${optSAVE_PREVIOUS}" != "1" ]]; then
     350(
     351cat << EOF
     352        @\$(call remove_existing_dirs,$FILE)
     353EOF
     354) >> $MKFILE.tmp
     355  fi
     356
     357(
     358cat << EOF
     359        @\$(call unpack,$FILE)
     360        @\$(call get_pkg_root)
     361EOF
     362) >> $MKFILE.tmp
     363
     364}
     365
     366unset wrt_unpack2
     367#----------------------------------#
     368wrt_unpack2() {                    #
     369#----------------------------------#
     370  local FILE=$1
     371  local optSAVE_PREVIOUS=$2
     372
     373  if [ "${optSAVE_PREVIOUS}" != "1" ]; then
     374(
     375cat << EOF
     376        @\$(call remove_existing_dirs,$FILE)
     377EOF
     378) >> $MKFILE.tmp
     379  fi
     380(
     381cat  << EOF
     382        @\$(call unpack2,$FILE)
     383        @\$(call get_pkg_root,nouser)
     384EOF
     385) >> $MKFILE.tmp
     386}
     387
     388#----------------------------------#
     389wrt_unpack3() {                    #
     390#----------------------------------#
     391  local FILE=$1
     392  local optSAVE_PREVIOUS=$2
     393
     394  if [ "${optSAVE_PREVIOUS}" != "1" ]; then
     395(
     396cat << EOF
     397        @\$(call remove_existing_dirs2,$FILE)
     398EOF
     399) >> $MKFILE.tmp
     400  fi
     401(
     402cat  << EOF
     403        @\$(call unpack3,$FILE)
     404        @\$(call get_pkg_root2)
     405EOF
     406) >> $MKFILE.tmp
     407}
     408
     409
     410unset wrt_remove_build_dirs
     411#----------------------------------#
     412wrt_remove_build_dirs() {          #
     413#----------------------------------#
     414  local name=$1
     415(
     416cat << EOF
     417        @\$(call remove_build_dirs,$name)
     418EOF
     419) >> $MKFILE.tmp
     420}
     421
     422#----------------------------------#
     423wrt_remove_build_dirs2() {         #
     424#----------------------------------#
     425  local name=$1
     426(
     427cat << EOF
     428        @\$(call remove_build_dirs2,$name)
     429EOF
     430) >> $MKFILE.tmp
     431}
     432
     433
     434
     435unset wrt_touch
     436#----------------------------------#
     437wrt_touch() {                      #
     438#----------------------------------#
     439(
     440cat << EOF
     441        @\$(call housekeeping)
     442EOF
     443) >> $MKFILE.tmp
     444}
     445
     446unset wrt_RunAsUser
     447#----------------------------------#
    394448wrt_RunAsUser() {                  # Execute script inside time { }, footer to log file
    395449#----------------------------------#
    396450  local this_script=$1
    397451  local file=$2
    398 (
    399 cat << EOF
    400         @( time { su - \$(LUSER) -c "source /home/\$(LUSER)/.bashrc && $JHALFSDIR/${PROGNAME}-commands/$file" >>logs/$this_script 2>&1 ; } ) 2>>logs/$this_script && \\
    401         echo -e "\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >>logs/$this_script
     452
     453(
     454cat << EOF
     455        @( time { \$(SU_LUSER) "source \$(LUSER_HOME)/.bashrc && \$(CMDSDIR)/`dirname $file`/\$@" >> logs/\$@ 2>&1; } ) 2>> logs/\$@ && \\
     456        \$(PRT_DU) >> logs/\$@
    402457EOF
    403458) >> $MKFILE.tmp
     
    423478(
    424479cat << EOF
    425         @( time { export ${MOUNT_ENV}=\$(MOUNT_PT) && ${PROGNAME}-commands/$file >>logs/$this_script 2>&1 ; } ) 2>>logs/$this_script && \\
    426         echo -e "\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >>logs/$this_script
    427 EOF
    428 ) >> $MKFILE.tmp
    429 }
    430 
     480        @( time { export ${MOUNT_ENV}=\$(MOUNT_PT) && ${PROGNAME}-commands/`dirname $file`/\$@ >>logs/\$@ 2>&1 ; } ) 2>>logs/\$@ && \\
     481        \$(PRT_DU_CR) >>logs/\$@
     482EOF
     483) >> $MKFILE.tmp
     484}
    431485
    432486#----------------------------------#
     
    437491(
    438492cat << EOF
    439         @( time { source envars && ${PROGNAME}-commands/$file >>logs/$this_script 2>&1 ; } ) 2>>logs/$this_script && \\
    440         echo -e "\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \`\n" >>logs/$this_script
    441 EOF
    442 ) >> $MKFILE.tmp
    443 }
    444 
    445 
     493        @( time { source envars && ${PROGNAME}-commands/`dirname $file`/\$@ >>logs/\$@ 2>&1 ; } ) 2>>logs/\$@ && \\
     494        echo -e "\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \`\n" >>logs/\$@
     495EOF
     496) >> $MKFILE.tmp
     497}
     498
     499
     500unset wrt_run_as_chroot1
    446501#----------------------------------#
    447502wrt_run_as_chroot1() {             #
     
    450505  local file=$2
    451506(
    452     cat << EOF
    453         @( time { \$(CHROOT1) 'cd /${SCRIPT_ROOT} && source envars && /${SCRIPT_ROOT}/${PROGNAME}-commands/$file >>/${SCRIPT_ROOT}/logs/${this_script} 2>&1' ; } ) 2>>logs/$this_script && \\
    454         echo -e "\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >>logs/${this_script}
    455 EOF
    456 ) >> $MKFILE.tmp
    457 }
    458 
    459 
     507cat << EOF
     508        @( time { \$(CHROOT1) 'cd \$(SCRIPT_ROOT) && source envars && \$(crCMDSDIR)/`dirname $file`/\$@ >>logs/\$@ 2>&1' ; } ) 2>>logs/\$@ && \\
     509        \$(PRT_DU_CR) >> logs/\$@
     510EOF
     511) >> $MKFILE.tmp
     512}
     513
     514unset wrt_run_as_chroot2
    460515#----------------------------------#
    461516wrt_run_as_chroot2() {             #
     
    465520(
    466521cat << EOF
    467         @( time { \$(CHROOT2) 'cd /${SCRIPT_ROOT} && source envars && /${SCRIPT_ROOT}/${PROGNAME}-commands/$file >>/${SCRIPT_ROOT}/logs/${this_script} 2>&1' ; } ) 2>>logs/$this_script && \\
    468         echo -e "\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >>logs/${this_script}
    469 EOF
    470 ) >> $MKFILE.tmp
    471 }
    472 
    473 
    474 #----------------------------------#
    475 wrt_copy_fstab() {                 #
     522        @( time { \$(CHROOT2) 'cd \$(SCRIPT_ROOT) && source envars && \$(crCMDSDIR)/`dirname $file`/\$@ >>logs/\@ 2>&1' ; } ) 2>>logs/\@ && \\
     523        \$(PRT_DU_CR) >> logs/\$@
     524EOF
     525) >> $MKFILE.tmp
     526}
     527
     528unset wrt_target
     529#----------------------------------#
     530wrt_target() {                     # Create target and initialize log file
    476531#----------------------------------#
    477532  local i=$1
    478 (
    479     cat << EOF
    480         @cp -v $FSTAB \$(MOUNT_PT)/etc/fstab >>logs/$i 2>&1
    481 EOF
    482 ) >> $MKFILE.tmp
    483 }
    484 
    485 #----------------------------------#
    486 wrt_copy_fstab2() {                #
     533  local PREV=$2
     534  case $i in
     535    iteration* ) local LOGFILE="\$@.log" ;;
     536             * ) local LOGFILE="\$@"     ;;
     537  esac
     538(
     539cat << EOF
     540
     541$i:  $PREV
     542        @\$(call echo_message, Building)
     543        @./progress_bar.sh \$@ &
     544        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT} \$(MOUNT_PT)\`\n" >logs/$LOGFILE
     545EOF
     546) >> $MKFILE.tmp
     547}
     548
     549#----------------------------------#
     550wrt_target_boot() {                # Create target and initialize log file
    487551#----------------------------------#
    488552  local i=$1
    489 (
    490     cat << EOF
    491         @cp -v /sources/fstab /etc/fstab >>logs/$i 2>&1
    492 EOF
    493 ) >> $MKFILE.tmp
    494 }
    495 
    496 
    497 #----------------------------------#
    498 wrt_remove_build_dirs() {          #
    499 #----------------------------------#
    500   local name=$1
    501 (
    502 cat << EOF
    503         @ROOT=\`head -n1 \$(MOUNT_PT)\$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
    504         rm -rf \$(MOUNT_PT)\$(SRC)/\$\$ROOT && \\
    505         if [ -e \$(MOUNT_PT)\$(SRC)/$name-build ]; then \\
    506                 rm -rf \$(MOUNT_PT)\$(SRC)/$name-build; \\
    507         fi;
    508 EOF
    509 ) >> $MKFILE.tmp
    510 }
    511 
    512 
    513 #----------------------------------#
    514 wrt_remove_build_dirs2() {         #
    515 #----------------------------------#
    516   local name=$1
    517 (
    518 cat << EOF
    519         @ROOT=\`head -n1 \$(SRC)/\$(PKG_LST) | sed 's@^./@@;s@/.*@@'\` && \\
    520         rm -rf \$(SRC)/\$\$ROOT && \\
    521         if [ -e \$(SRC)/$name-build ]; then \\
    522                 rm -rf \$(SRC)/$name-build; \\
    523         fi;
    524 EOF
    525 ) >> $MKFILE.tmp
    526 }
    527 
    528 
    529 #----------------------------------#
    530 wrt_touch() {                      #
    531 #----------------------------------#
    532 (
    533 cat << EOF
    534         @touch  \$@ && \\
    535         sleep .25 && \\
    536         echo -e "\n\n "\$(BOLD)Target \$(BLUE)\$@ \$(BOLD)OK && \\
    537         echo --------------------------------------------------------------------------------\$(WHITE)
    538 EOF
    539 ) >> $MKFILE.tmp
    540 }
    541 
    542 
    543 #----------------------------------#
    544 wrt_report() {                     #
    545 #----------------------------------#
    546 (
    547 cat << EOF
    548 
    549 create-sbu_du-report:  $PREV
     553  local PREV=$2
     554  case $i in
     555    iteration* ) local LOGFILE="\$@.log" ;;
     556             * ) local LOGFILE="\$@" ;;
     557  esac
     558(
     559cat << EOF
     560
     561$i:  $PREV
    550562        @\$(call echo_message, Building)
    551         @./create-sbu_du-report.sh logs $VERSION
    552         @\$(call echo_report,$VERSION-SBU_DU-$(date --iso-8601).report)
    553         @touch  \$@
    554 EOF
    555 ) >> $MKFILE.tmp
    556 
    557 chapter789="$chapter789 create-sbu_du-report"
    558 }
     563        @./progress_bar.sh \$@ &
     564        @echo -e "\n\`date\`\n\nKB: \`du -skx --exclude=${SCRIPT_ROOT}\`\n" >logs/$LOGFILE
     565EOF
     566) >> $MKFILE.tmp
     567}
     568
    559569
    560570
     
    563573#----------------------------#
    564574  # Test if make must be run.
    565   if [ "$RUNMAKE" = "1" ] ; then
     575  if [ "$RUNMAKE" = "y" ] ; then
    566576    # Test to make sure we're running the build as root
    567577    if [ "$UID" != "0" ] ; then
     
    583593#----------------------------#
    584594  # Test if the clean must be done.
    585   if [ "$CLEAN" = "1" ] ; then
     595  if [ "${CLEAN}" = "y" ]; then
    586596    # Test to make sure we're running the clean as root
    587597    if [ "$UID" != "0" ] ; then
     
    696706                 --stringparam page $PAGE \
    697707                 --stringparam lang $LANG \
    698                  --stringparam keymap ${KEYMAP:-"none"} \
     708                 --stringparam keymap $KEYMAP \
    699709                 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    700710      ;;
     
    708718                 --stringparam page $PAGE \
    709719                 --stringparam lang $LANG \
    710                  --stringparam keymap ${KEYMAP:-"none"} \
     720                 --stringparam keymap $KEYMAP \
    711721                 -o ./${PROGNAME}-commands/ $XSL $BOOK/$ARCH-index.xml >>$LOGDIR/$LOG 2>&1
    712722      ;;
     
    722732                 --stringparam lang $LANG \
    723733                 --stringparam lc_all $LC_ALL \
    724                  --stringparam keymap ${KEYMAP:-"none"} \
     734                 --stringparam keymap $KEYMAP \
    725735                 --stringparam grsecurity_host $GRSECURITY_HOST \
    726736                 -o ./${PROGNAME}-commands/ $XSL $BOOK/index.xml >>$LOGDIR/$LOG 2>&1
     
    786796
    787797    # Test if the packages must be downloaded
    788   [ ! "$GETPKG" = "1" ] && return
     798  [ ! "$GETPKG" = "y" ] && return
    789799
    790800  gs_wrt_message(){
     
    816826        *linux/linux-* )
    817827            [[ -z "$CONFIG" ]] && [[ -z "$BOOT_CONFIG" ]] && \
    818             [[ "$GETKERNEL" = "0" ]] && continue
     828            [[ "$GETKERNEL" = "n" ]] && continue
    819829          ;;
    820830    esac
     
    898908      # Do not allow the automatic execution of the Makefile.
    899909    echo "${tab_}${BOLD}${RED}*** ${YELLOW}Automatic execution of the generated makefile has been inhibited. ${RED}***${OFF}${nl_}"
    900     RUNMAKE=0
     910    RUNMAKE="n"
    901911  fi
    902912}
  • common/config

    r5be3651 r401f81e  
    1212BUILDDIR=/mnt/build_dir
    1313
    14 # Create SBU and disk usage report  0(no)/1(yes)
     14# Create SBU and disk usage report  n(no)/y(yes)
    1515# NOTE: requires to have bc installed on the host
    16 REPORT=1
     16REPORT=y
    1717
    1818#=== Getting packages ===
    1919#    Files will be retrieved from the local archive SRC_ARCHIVE
    2020#    (if defined) or the 'net and will be stored in $BUILDDIR/sources
    21 #--- Download the source packages 0(no)/1(yes)
    22 GETPKG=0
     21#--- Download the source packages n(no)/y(yes)
     22GETPKG=n
    2323
    2424#--- The local repository for packages/file
    25 #    Used only if GETPKG = 1
     25#    Used only if GETPKG = y
    2626#    Any missing file will be downloaded and archived here,
    2727#    if the user has the right priviledges.
     
    3333
    3434#=== Build options ===
    35 #--- Automatically run the makefile once it has been created  0(no)/1(yes)
    36 RUNMAKE=0
     35#--- Automatically run the makefile once it has been created  n(no)/y(yes)
     36RUNMAKE=n
    3737
    3838#--- Optimize the build  [0-2]
     
    5353
    5454#--- Bomb on test suites failures?
    55 0 = no, I want to build the full system and review the logs
    56 1 = yes, bomb at the first test suite failure to can review the build dir
    57 BOMB_TEST=0
     55n = no, I want to build the full system and review the logs
     56y = yes, bomb at the first test suite failure to can review the build dir
     57BOMB_TEST=n
    5858
    59 #--- Run the stripping phases  0(no)/1(yes)
    60 STRIP=1
     59#--- Run the stripping phases  n(no)/y(yes)
     60STRIP=y
    6161
    6262#--- page definition for groff letter/A4
     
    6666TIMEZONE=${TZ:-GMT}
    6767
    68 #--- install the optional vim-lang package  0(no)/1(yes)
    69 VIMLANG=1
     68#--- install the optional vim-lang package  n(no)/y(yes)
     69VIMLANG=y
    7070
    7171#--- Language information in /etc/profile  See <locale -a> for values
     
    8080
    8181#=== Variables needed by iterative comparison analysis ===
    82 #--- Should some iterative comparison analysis by made? 0(no)/1(yes)
    83 COMPARE=0
     82#--- Should some iterative comparison analysis by made? n(no)/y(yes)
     83COMPARE=n
    8484
    8585#--- The number of final stage builds to create and compare, min. 2, max. 5
    8686ITERATIONS=3
    8787
    88 #--- Run ICA testing 0(no)/1(yes)
    89 RUN_ICA=0
     88#--- Run ICA testing n(no)/y(yes)
     89RUN_ICA=n
    9090
    91 #--- Run farce testing 0(no)/1(yes)
    92 RUN_FARCE=0
     91#--- Run farce testing n(no)/y(yes)
     92RUN_FARCE=n
    9393
    9494#==== INTERNAL VARIABLES ====
  • common/func_compare.sh

    r5be3651 r401f81e  
    5555  fi
    5656
    57   if [[ "$RUN_ICA" = "1" ]] ; then
     57  if [[ "$RUN_ICA" = "y" ]] ; then
    5858    local DEST_ICA=$DEST_TOPDIR/ICA && \
    5959(
     
    6868  fi
    6969
    70   if [[ "$RUN_FARCE" = "1" ]] ; then
     70  if [[ "$RUN_FARCE" = "y" ]] ; then
    7171    local DEST_FARCE=$DEST_TOPDIR/farce && \
    7272(
  • common/func_validate_configs.sh

    r5be3651 r401f81e  
    178178
    179179      # Validate general parameters..
    180       GETPKG)     validate_against_str "x0x x1x" ;;
     180      GETPKG)     validate_against_str "xnx xyx" ;;
    181181      GETKERNEL ) if [[ -z "$CONFIG" ]] && [[ -z "$BOOT_CONFIG" ]] ; then
    182                     [[ "$GETPKG" = "1" ]] && validate_against_str "x0x x1x"
     182                    [[ "$GETPKG" = "y" ]] && validate_against_str "xnx xyx"
    183183                  fi ;;
    184       RUNMAKE)    validate_against_str "x0x x1x" ;;
    185       REPORT)     validate_against_str "x0x x1x"
    186                   if [[ "${!config_param}" = "1" ]]; then
     184      RUNMAKE)    validate_against_str "xnx xyx" ;;
     185      REPORT)     validate_against_str "xnx xyx"
     186                  if [[ "${!config_param}" = "y" ]]; then
    187187                    if [[ `type -p bc` ]]; then
    188188                      continue
     
    190190                      echo -e "  ${BOLD}The bc binary was not found${OFF}"
    191191                      echo -e "  The SBU and disk usage report creation will be skiped"
    192                       REPORT=0
     192                      REPORT=n
    193193                      continue
    194194                    fi
    195195                  fi ;;
    196       COMPARE)    if [[ ! "$COMPARE" = "1" ]]; then
    197                     validate_against_str "x0x x1x"
     196      COMPARE)    if [[ ! "$COMPARE" = "y" ]]; then
     197                    validate_against_str "xnx xyx"
    198198                  else
    199                     if [[ ! "${RUN_ICA}" = "1" ]] && [[ ! "${RUN_FARCE}" = "1" ]]; then
     199                    if [[ ! "${RUN_ICA}" = "y" ]] && [[ ! "${RUN_FARCE}" = "y" ]]; then
    200200                       echo  "${nl_}${DD_BORDER}"
    201201                       echo  "You have elected to analyse your build but have failed to select a tool." >&2
     
    205205                    fi
    206206                  fi ;;
    207       RUN_ICA)    [[ "$COMPARE" = "1" ]] && validate_against_str "x0x x1x" ;;
    208       RUN_FARCE)  [[ "$COMPARE" = "1" ]] && validate_against_str "x0x x1x" ;;
    209       ITERATIONS) [[ "$COMPARE" = "1" ]] && validate_against_str "x2x x3x x4x x5x" ;;
     207      RUN_ICA)    [[ "$COMPARE" = "y" ]] && validate_against_str "xnx xyx" ;;
     208      RUN_FARCE)  [[ "$COMPARE" = "y" ]] && validate_against_str "xnx xyx" ;;
     209      ITERATIONS) [[ "$COMPARE" = "y" ]] && validate_against_str "x2x x3x x4x x5x" ;;
    210210      TEST)       validate_against_str "x0x x1x x2x x3x" ;;
    211       BOMB_TEST)  [[ ! "$TEST" = "0" ]] && validate_against_str "x0x x1x" ;;
     211      BOMB_TEST)  [[ ! "$TEST" = "0" ]] && validate_against_str "xnx xyx" ;;
    212212      OPTIMIZE)   validate_against_str "x0x x1x x2x" ;;
    213       STRIP)      validate_against_str "x0x x1x" ;;
    214       VIMLANG)    validate_against_str "x0x x1x" ;;
     213      STRIP)      validate_against_str "xnx xyx" ;;
     214      VIMLANG)    validate_against_str "xnx xyx" ;;
    215215      MODEL)      validate_against_str "xglibcx xuclibcx" ;;
    216216      PAGE)       validate_against_str "xletterx xA4x" ;;
     
    224224                  [[ "${!config_param}" = "**EDIT ME**" ]] && write_error_and_die
    225225                  ;;
    226       GRSECURITY_HOST)  validate_against_str "x0x x1x" ;;
     226      GRSECURITY_HOST)  validate_against_str "xnx xyx" ;;
    227227
    228228      # BOOK validation. Very ugly, need be fixed
     
    236236      #  fatal   -z -d -w,
    237237      #  warning -z+   -w+
    238       SRC_ARCHIVE) [[ "$GETPKG" = "1" ]] && validate_dir -z+ -d -w+ ;;
     238      SRC_ARCHIVE) [[ "$GETPKG" = "y" ]] && validate_dir -z+ -d -w+ ;;
    239239      BUILDDIR)   # The build directory/partition MUST exist and be writable by the user
    240240                  validate_dir -z -d -w
  • common/makefile-functions

    r5be3651 r401f81e  
    1616endef
    1717
     18define remove_existing_dirs
     19  @PKG_PATH=`ls -t $(SRCSDIR)/$(1) | head -n1` && \
     20  ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
     21  rm -rf $(SRCSDIR)/$$ROOT && \
     22  rm -rf $(SRCSDIR)/$${ROOT%-*}-build
     23endef
     24
     25define remove_existing_dirs2
     26  @PKG_PATH=\`ls -t $(SRC)/$(1) | head -n1\` && \
     27  ROOT=`tar -tf $$PKG_PATH | head -n1 | sed -e 's@^./@@;s@/.*@@'` && \
     28  rm -rf $(SRC)/$$ROOT && \
     29  rm -rf $(SRC)/$${ROOT-*}-build
     30endef
     31
     32define remove_build_dirs
     33  @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     34  rm -rf $(SRCSDIR)/$$ROOT && \
     35  rm -rf $(SRCSDIR)/$(1)-build
     36endef
     37
     38define remove_build_dirs2
     39  @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     40  rm -rf $(SRC)/$$ROOT && \
     41  rm -rf $(SRC)/$(1)-build
     42endef
     43
     44define housekeeping
     45  @touch  $@ && \
     46  sleep .25 && \
     47  echo -e "\n\n "$(BOLD)Target $(BLUE)$@ $(BOLD)OK && \
     48  echo --------------------------------------------------------------------------------$(WHITE)
     49
     50endef
     51
     52define get_pkg_root
     53  @ROOT=`head -n1 $(SRCSDIR)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     54  if [ "$(1)" != "nouser" ]; then \
     55    echo "export PKGDIR=$(SRCSDIR)/$$ROOT" > envars; \
     56    chown -R $(LUSER) $(SRCSDIR)/$$ROOT; \
     57  else \
     58    echo "export PKGDIR=$(crSRCSDIR)/$$ROOT" > envars; \
     59  fi;
     60endef
     61
     62define get_pkg_root2
     63  @ROOT=`head -n1 $(SRC)/$(PKG_LST) | sed 's@^./@@;s@/.*@@'` && \
     64  echo "export PKGDIR=$(SRC)/$$ROOT" > envars
     65endef
     66
    1867define unpack
    19   @cd $(MOUNT_PT)$(SRC) && \
     68  @cd $(SRCSDIR) && \
    2069  tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
    2170endef
    2271
    2372define unpack2
    24   @cd $(MOUNT_PT)$(SRC) && \
     73  @cd $(SRCSDIR) && \
    2574  /tools/bin/tar -xvf `ls -t $(1) | head -n1` > $(PKG_LST)
    2675endef
  • master.sh

    r5be3651 r401f81e  
    4747    VERBOSITY=0
    4848
    49 [[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..."
    50 source $COMMON_DIR/common-functions
    51 [[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit
    52 [[ $VERBOSITY > 0 ]] && echo "OK"
    53 #
    54 [[ $VERBOSITY > 0 ]] && echo -n "Loading masterscript conf..."
    55 source $COMMON_DIR/config
    56 [[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit
    57 [[ $VERBOSITY > 0 ]] && echo "OK"
    58 #
    59 [[ $VERBOSITY > 0 ]] && echo -n "Loading config module <$MODULE_CONFIG>..."
    60 source $MODULE_CONFIG
    61 [[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 1
    62 [[ $VERBOSITY > 0 ]] && echo "OK"
    63 #
    64 [[ $VERBOSITY > 0 ]] && echo -n "Loading code module <$MODULE>..."
    65 source $MODULE
    66 [[ $? > 0 ]] && echo "$MODULE did not load.." && exit 2
    67 [[ $VERBOSITY > 0 ]] && echo "OK"
    68 #
    69 [[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}"
    7049
    7150if [[ -e using_menuconfig ]]; then
     
    8564        #--- farce report log directory
    8665  FARCELOGDIR=$LOGDIR/farce
     66          XSL=$PROGNAME.xsl
     67
     68  case $PROGNAME in
     69    clfs2) LFSVRS=development; TREE=branches/clfs-2.0/BOOK ;;
     70        *) LFSVRS=development; TREE=trunk/BOOK             ;;
     71  esac
    8772
    8873  if [[ ! -z ${BRANCH_ID} ]]; then
     
    11398    esac
    11499  fi
    115 fi
     100  # These are boolean vars generated from Config.in.
     101  # ISSUE: If a boolean parameter is not set <true> that
     102  # variable is not defined by the menu app. This can
     103  # cause a headache if you are not careful.
     104  #  The following parameters MUST be created and have a
     105  #  default value.
     106  RUNMAKE=${RUNMAKE:-n}
     107  GETPKG=${GETPKG:-n}
     108  GETKERNEL=${GETKERNEL:-n}
     109  COMPARE=${COMPARE:-n}
     110  RUN_FARCE=${RUN_FARCE:-n}
     111  RUN_ICA=${RUN_ICA:-n}
     112  BOMB_TEST=${BOMB_TEST:-n}
     113  STRIP=${STRIP:=n}
     114  REPORT=${REPORT:=n}
     115  VIMLANG=${VIMLANG:-n}
     116  KEYMAP=${KEYMAP:=none}
     117  GRSECURITY_HOST=${GRSECURITY_HOST:-n}
     118
     119else
     120  #
     121  [[ $VERBOSITY > 0 ]] && echo -n "Loading masterscript conf..."
     122  source $COMMON_DIR/config
     123  [[ $? > 0 ]] && echo "$COMMON_DIR/conf did not load.." && exit
     124  [[ $VERBOSITY > 0 ]] && echo "OK"
     125  #
     126  [[ $VERBOSITY > 0 ]] && echo -n "Loading config module <$MODULE_CONFIG>..."
     127  source $MODULE_CONFIG
     128  [[ $? > 0 ]] && echo "$MODULE_CONFIG did not load.." && exit 1
     129  [[ $VERBOSITY > 0 ]] && echo "OK"
     130  #
     131fi
     132
     133
     134[[ $VERBOSITY > 0 ]] && echo -n "Loading common-functions module..."
     135source $COMMON_DIR/common-functions
     136[[ $? > 0 ]] && echo " $COMMON_DIR/common-functions did not load.." && exit
     137[[ $VERBOSITY > 0 ]] && echo "OK"
     138[[ $VERBOSITY > 0 ]] && echo -n "Loading code module <$MODULE>..."
     139source $MODULE
     140[[ $? > 0 ]] && echo "$MODULE did not load.." && exit 2
     141[[ $VERBOSITY > 0 ]] && echo "OK"
     142#
     143[[ $VERBOSITY > 0 ]] && echo "${SD_BORDER}${nl_}"
     144
    116145
    117146#===========================================================
     
    191220      ;;
    192221
    193     --get-packages | -G )      GETPKG=1    ;;
     222    --get-packages | -G )      GETPKG=y    ;;
    194223
    195224    --help | -h )  usage | more && exit  ;;
     
    268297      shift
    269298      case $1 in
    270         ICA)              RUN_ICA=1
    271                         RUN_FARCE=0
    272                           COMPARE=1
    273         ;;
    274         farce)            RUN_ICA=0
    275                         RUN_FARCE=1
    276                           COMPARE=1
    277         ;;
    278         both)             RUN_ICA=1
    279                         RUN_FARCE=1
    280                           COMPARE=1
    281         ;;
     299        ICA)    RUN_ICA=y; RUN_FARCE=n; COMPARE=y  ;;
     300        farce)  RUN_ICA=n; RUN_FARCE=y; COMPARE=y  ;;
     301        both)   RUN_ICA=y; RUN_FARCE=y; COMPARE=y  ;;
    282302        *)
    283303          echo -e "\n$1 is an unknown analysis method."
     
    309329      ;;
    310330
    311     --run-make | -M )      RUNMAKE=1 ;;
    312 
    313     --rebuild | -R )       CLEAN=1   ;;
     331    --run-make | -M )      RUNMAKE=y ;;
     332
     333    --rebuild | -R )       CLEAN=y   ;;
    314334
    315335    # CLFS options
     
    317337      test $# = 1 && eval "$exit_missing_arg"
    318338      shift
    319       case $1 in
    320         arm )
    321           ARCH=arm
    322           TARGET="arm-unknown-linux-gnu"
    323           ;;
    324         x86 )
    325           ARCH=x86
    326           TARGET="i686-pc-linux-gnu"
    327           ;;
    328         i486 )
    329           ARCH=x86
    330           TARGET="i486-pc-linux-gnu"
    331           ;;
    332         i586 )
    333           ARCH=x86
    334           TARGET="i586-pc-linux-gnu"
    335           ;;
    336         ppc )
    337           ARCH=ppc
    338           TARGET="powerpc-unknown-linux-gnu"
    339           ;;
    340         mips )
    341           ARCH=mips
    342           TARGET="mips-unknown-linux-gnu"
    343           ;;
    344         mipsel )
    345           ARCH=mips
    346           TARGET="mipsel-unknown-linux-gnu"
    347           ;;
    348         sparc )
    349           ARCH=sparc
    350           TARGET="sparcv9-unknown-linux-gnu"
    351           ;;
    352         x86_64-64 )
    353           ARCH=x86_64-64
    354           TARGET="x86_64-unknown-linux-gnu"
    355           ;;
    356         mips64-64 )
    357           ARCH=mips64-64
    358           TARGET="mips-unknown-linux-gnu"
    359           ;;
    360         mipsel64-64 )
    361           ARCH=mips64-64
    362           TARGET="mipsel-unknown-linux-gnu"
    363           ;;
    364         sparc64-64 )
    365           ARCH=sparc64-64
    366           TARGET="sparc64-unknown-linux-gnu"
    367           ;;
    368         alpha )
    369           ARCH=alpha
    370           TARGET="alpha-unknown-linux-gnu"
    371           ;;
    372         x86_64 )
    373           ARCH=x86_64
    374           TARGET="x86_64-unknown-linux-gnu"
    375           TARGET32="i686-pc-linux-gnu"
    376           ;;
    377         mips64 )
    378           ARCH=mips64
    379           TARGET="mips-unknown-linux-gnu"
    380           TARGET32="mips-unknown-linux-gnu"
    381           ;;
    382         mipsel64 )
    383           ARCH=mips64
    384           TARGET="mipsel-unknown-linux-gnu"
    385           TARGET32="mipsel-unknown-linux-gnu"
    386           ;;
    387         sparc64 )
    388           ARCH=sparc64
    389           TARGET="sparc64-unknown-linux-gnu"
    390           TARGET32="sparcv9-unknown-linux-gnu"
    391           ;;
    392         ppc64 )
    393           ARCH=ppc64
    394           TARGET="powerpc64-unknown-linux-gnu"
    395           TARGET32="powerpc-unknown-linux-gnu"
    396           ;;
    397         * )
    398           echo -e "\n$1 is an unknown or unsupported arch."
    399           exit 1
    400           ;;
     339      case $PROGNAME in
     340        CLFS2)
     341          case $1 in
     342            arm) ARCH=arm; TARGET="arm-unknown-linux-gnu" ;;
     343            x86) ARCH=x86; TARGET="i686-pc-linux-gnu"     ;;
     344              *) echo -e "\n$1 is an unknown or unsupported arch.";  exit 1
     345          esac
     346          ;;
     347        CLFS)
     348          case $1 in
     349            arm )   ARCH=arm;   TARGET="arm-unknown-linux-gnu" ;;
     350            x86 )   ARCH=x86;   TARGET="i686-pc-linux-gnu"     ;;
     351           i486 )   ARCH=x86;   TARGET="i486-pc-linux-gnu"     ;;
     352           i586 )   ARCH=x86;   TARGET="i586-pc-linux-gnu"     ;;
     353            ppc )   ARCH=ppc;   TARGET="powerpc-unknown-linux-gnu"   ;;
     354           mips )   ARCH=mips;  TARGET="mips-unknown-linux-gnu"      ;;
     355           mipsel ) ARCH=mips;  TARGET="mipsel-unknown-linux-gnu"    ;;
     356            sparc ) ARCH=sparc; TARGET="sparcv9-unknown-linux-gnu"   ;;
     357
     358           x86_64-64 )   ARCH=x86_64-64;  TARGET="x86_64-unknown-linux-gnu"   ;;
     359           mips64-64 )   ARCH=mips64-64;  TARGET="mips-unknown-linux-gnu"     ;;
     360           mipsel64-64 ) ARCH=mips64-64;  TARGET="mipsel-unknown-linux-gnu" ;;
     361           sparc64-64 )  ARCH=sparc64-64; TARGET="sparc64-unknown-linux-gnu" ;;
     362           alpha )       ARCH=alpha;      TARGET="alpha-unknown-linux-gnu"   ;;
     363
     364           x86_64 )   ARCH=x86_64;  TARGET="x86_64-unknown-linux-gnu";    TARGET32="i686-pc-linux-gnu"        ;;
     365           mips64 )   ARCH=mips64;  TARGET="mips-unknown-linux-gnu";      TARGET32="mips-unknown-linux-gnu"   ;;
     366           mipsel64 ) ARCH=mips64;  TARGET="mipsel-unknown-linux-gnu";    TARGET32="mipsel-unknown-linux-gnu"  ;;
     367           sparc64 )  ARCH=sparc64; TARGET="sparc64-unknown-linux-gnu";   TARGET32="sparcv9-unknown-linux-gnu"  ;;
     368            ppc64 )   ARCH=ppc64;   TARGET="powerpc64-unknown-linux-gnu"; TARGET32="powerpc-unknown-linux-gnu"  ;;
     369
     370            * )  echo -e "\n$1 is an unknown or unsupported arch.";   exit 1  ;;
     371          esac
     372          ;;
    401373      esac
    402374      ;;
     
    447419  shift
    448420done
     421
    449422
    450423#===================================================
     
    461434
    462435
    463 # Check for minimum gcc and kernel versions
    464 #check_requirements  1 # 0/1  0-do not display values.
     436# Check for minimum bash,tar,gcc and kernel versions
    465437echo
    466438check_version "2.6.2" "`uname -r`"         "KERNEL"
     
    483455# Load additional modules or configuration files based on global settings
    484456# compare module
    485 if [[ "$COMPARE" = "1" ]]; then
     457if [[ "$COMPARE" = "y" ]]; then
    486458  [[ $VERBOSITY > 0 ]] && echo -n "Loading compare module..."
    487459  source $COMMON_DIR/func_compare.sh
     
    538510  [[ "$OPTIMIZE" != "0" ]] && cp optimize/opt_override $JHALFSDIR/
    539511  #
    540   if [[ "$COMPARE" != "0" ]] ; then
     512  if [[ "$COMPARE" = "y" ]]; then
    541513    mkdir -p $JHALFSDIR/extras
    542514    cp extras/* $JHALFSDIR/extras
     
    550522  fi
    551523  #
    552   if [[ "$REPORT" = "1" ]]; then
     524  if [[ "$REPORT" = "y" ]]; then
    553525    cp $COMMON_DIR/create-sbu_du-report.sh  $JHALFSDIR/
    554526    # After being sure that all looks sane, dump the settings to a file
     
    557529  fi
    558530  #
    559   [[ "$GETPKG" = "1" ]] && cp $COMMON_DIR/urls.xsl  $JHALFSDIR/
     531  [[ "$GETPKG" = "y" ]] && cp $COMMON_DIR/urls.xsl  $JHALFSDIR/
    560532  #
    561533  cp $COMMON_DIR/packages.xsl  $JHALFSDIR/
Note: See TracChangeset for help on using the changeset viewer.