Fwd: LFS Script suggestion

Tushar Teredesai tushar at linuxfromscratch.org
Sun Jan 28 22:20:46 PST 2007


A bug report that I received.

---------- Forwarded message ----------
From: Vic Kovacs <kovacsbv at pobox.com>
Date: Jan 28, 2007 6:20 AM
Subject: LFS Script suggestion
To: tushar at linuxfromscratch.org


Could I advocate adding a chmod to the script in
http://www.linuxfromscratch.org/lfs/view/stable/prologue/hostreqs.html?
 My system won't run the script without it. . .

cat > version-check.sh << "EOF"; chmod ugo+x version-check.sh
 #!/bin/bash

# Simple script to list version numbers of critical development tools

bash --version | head -n1 | cut -d" " -f2-4
 echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-4
 bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
diff --version | head -n1
 find --version | head -n1
gawk --version | head -n1
 gcc --version | head -n1
/lib/libc.so.6 | head -n1 | cut -d" " -f1-7
 grep --version | head -n1
gzip --version | head -n1
 cat /proc/version | head -n1 | cut -d" " -f1-3,5-7
make --version | head -n1
patch --version | head -n1
 sed --version | head -n1
tar --version | head -n1

 EOF

bash version-check.sh



-- 
Tushar Teredesai
   mailto:tushar at linuxfromscratch.org
   http://www.linuxfromscratch.org/~tushar/



More information about the lfs-dev mailing list