All pastes #2102107 Raw Edit

LFS

public shellscript v1 · immutable
#2102107 ·published 2012-01-11 08:43 UTC
rendered paste body
#!/bin/bashexport LC_ALL=C# Simple script to list version numbers of critical development toolsbash --version | head -n1 | cut -d" " -f2-4echo "/bin/sh -> `readlink -f /bin/sh`"echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-bison --version | head -n1if [ -e /usr/bin/yacc ];then echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";else echo "yacc not found"; fibzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2diff --version | head -n1find --version | head -n1gawk --version | head -n1if [ -e /usr/bin/awk ];then echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";else echo "awk not found"; figcc --version | head -n1/lib/libc.so.6 | head -n1 | cut -d"," -f1grep --version | head -n1gzip --version | head -n1cat /proc/versionm4 --version | head -n1make --version | head -n1patch --version | head -n1echo Perl `perl -V:version`sed --version | head -n1tar --version | head -n1echo "Texinfo: `makeinfo --version | head -n1`"xz --version | head -n1echo 'main(){}' > dummy.c && gcc -o dummy dummy.cif [ -x dummy ]; then echo "Compilation OK";else echo "Compilation failed"; firm -f dummy.c dummyEOF