Changeset f7a6c6f for BOOK


Ignore:
Timestamp:
Dec 17, 2012, 5:12:52 AM (12 years ago)
Author:
Chris Staub <chris@…>
Branches:
clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
2bd7b2c
Parents:
69f9f3f
Message:

Slight improvements to host reqs. script

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/prologue/common/hostreqs.xml

    r69f9f3f rf7a6c6f  
    139139xz --version | head -n1
    140140echo 'main(){}' | gcc -v -o /dev/null -x c - > dummy.log 2>&amp;1
    141 if grep -q ' error' dummy.log; then
     141if ! grep -q ' error' dummy.log; then
    142142  echo "Compilation successful" &amp;&amp; rm dummy.log
    143143else
    144   echo "Compilation FAILED - more development packages may need to be \
    145  installed. If you like, you can also view dummy.log for more details."
     144  echo 1>&amp;2  "Compilation FAILED - more development packages may need to be \
     145installed. If you like, you can also view dummy.log for more details."
    146146fi</literal>
    147147EOF
    148148
    149 bash version-check.sh</userinput></screen>
     149bash version-check.sh 2>errors.log &amp;&amp;
     150[ -s errors.log ] &amp;&amp; echo -e "\nThe following packages could not be found:\n$(cat errors.log)"</userinput></screen>
    150151
    151152</sect1>
Note: See TracChangeset for help on using the changeset viewer.