Changeset b789d88
- Timestamp:
- 03/05/2023 02:01:40 AM (14 months ago)
- Branches:
- 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
- Children:
- 770e789
- Parents:
- 73e2b9c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter02/hostreqs.xml
r73e2b9c rb789d88 56 56 57 57 <listitem> 58 <para><emphasis role="strong">Coreutils- 6.9</emphasis></para>58 <para><emphasis role="strong">Coreutils-7.0</emphasis></para> 59 59 </listitem> 60 60 … … 166 166 167 167 <screen role="nodump"><userinput>cat > version-check.sh << "EOF" 168 <literal> 168 <literal>#!/bin/bash 169 169 # A script to list version numbers of critical development tools 170 170 … … 186 186 echo "ERROR: Cannot find $2 ($1)"; return 1; 187 187 fi 188 v=$($2 --version 2>&1 | grep -E -o '[0-9]+\.[0-9\.]+ ' | head -n1)188 v=$($2 --version 2>&1 | grep -E -o '[0-9]+\.[0-9\.]+[a-z]*' | head -n1) 189 189 if printf '%s\n' $3 $v | sort --version-sort --check &>/dev/null 190 190 then … … 198 198 ver_kernel() 199 199 { 200 kver=$(uname -r | sed -E 's/^([0-9\.]+).*/\1/')200 kver=$(uname -r | grep -E -o '[0-9\.]+') 201 201 if printf '%s\n' $1 $kver | sort --version-sort --check &>/dev/null 202 202 then … … 218 218 ver_check GCC gcc 5.1 219 219 ver_check "GCC (C++)" g++ 5.1 220 ver_check Grep grep 2. 6.1220 ver_check Grep grep 2.5.1a 221 221 ver_check Gzip gzip 1.3.12 222 222 ver_check M4 m4 1.4.10 … … 242 242 alias_check sh Bash 243 243 244 echo "Compiler check "244 echo "Compiler check:" 245 245 if printf "int main(){}" | g++ -x c++ - 246 246 then echo "OK: g++ works";
Note:
See TracChangeset
for help on using the changeset viewer.