Changeset d09e490 for chapter02


Ignore:
Timestamp:
03/05/2023 10:16:29 AM (15 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib
Children:
ce49ad6
Parents:
4e897cf (diff), 271c856 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Automatic merge of trunk into multilib

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter02/hostreqs.xml

    r4e897cf rd09e490  
    5656
    5757    <listitem>
    58       <para><emphasis role="strong">Coreutils-6.9</emphasis></para>
     58      <para><emphasis role="strong">Coreutils-7.0</emphasis></para>
    5959    </listitem>
    6060
     
    166166
    167167<screen role="nodump"><userinput>cat &gt; version-check.sh &lt;&lt; "EOF"
    168 <literal> #!/bin/bash
     168<literal>#!/bin/bash
    169169# A script to list version numbers of critical development tools
    170170
     
    186186     echo "ERROR: Cannot find $2 ($1)"; return 1;
    187187   fi
    188    v=$($2 --version 2>&amp;1 | grep -E -o '[0-9]+\.[0-9\.]+' | head -n1)
     188   v=$($2 --version 2>&amp;1 | grep -E -o '[0-9]+\.[0-9\.]+[a-z]*' | head -n1)
    189189   if printf '%s\n' $3 $v | sort --version-sort --check &amp;>/dev/null
    190190   then
     
    198198ver_kernel()
    199199{
    200    kver=$(uname -r | sed -E 's/^([0-9\.]+).*/\1/')
     200   kver=$(uname -r | grep -E -o '[0-9\.]+')
    201201   if printf '%s\n' $1 $kver | sort --version-sort --check &amp;>/dev/null
    202202   then
     
    218218ver_check GCC            gcc      5.1
    219219ver_check "GCC (C++)"    g++      5.1
    220 ver_check Grep           grep     2.6.1
     220ver_check Grep           grep     2.5.1a
    221221ver_check Gzip           gzip     1.3.12
    222222ver_check M4             m4       1.4.10
     
    229229ver_check Texinfo        texi2any 4.7
    230230ver_check Xz             xz       5.0.0
    231 #ver_check "Linux Kernel" "" 3.2 'cat /proc/version'
    232 ver_kernel 3.2
     231ver_kernel &min-kernel;
    233232
    234233alias_check() {
     
    242241alias_check sh Bash
    243242
    244 echo "Compiler check"
     243echo "Compiler check:"
    245244if printf "int main(){}" | g++ -x c++ -
    246245then echo "OK:    g++ works";
Note: See TracChangeset for help on using the changeset viewer.