This repo contains software to build linux from scratch and package it into rpm files.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

56 lines
1.5 KiB

  1. #!/bin/bash
  2. # Simple script to list version numbers of critical development tools
  3. export LC_ALL=C
  4. bash --version | head -n1 | cut -d" " -f2-4
  5. MYSH=$(readlink -f /bin/sh)
  6. echo "/bin/sh -> $MYSH"
  7. echo $MYSH | grep -q bash || echo "ERROR: /bin/sh does not point to bash"
  8. unset MYSH
  9. echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-
  10. bison --version | head -n1
  11. if [ -h /usr/bin/yacc ]; then
  12. echo "/usr/bin/yacc -> `readlink -f /usr/bin/yacc`";
  13. elif [ -x /usr/bin/yacc ]; then
  14. echo yacc is `/usr/bin/yacc --version | head -n1`
  15. else
  16. echo "yacc not found"
  17. fi
  18. bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-
  19. echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
  20. diff --version | head -n1
  21. find --version | head -n1
  22. gawk --version | head -n1
  23. if [ -h /usr/bin/awk ]; then
  24. echo "/usr/bin/awk -> `readlink -f /usr/bin/awk`";
  25. elif [ -x /usr/bin/awk ]; then
  26. echo awk is `/usr/bin/awk --version | head -n1`
  27. else
  28. echo "awk not found"
  29. fi
  30. gcc --version | head -n1
  31. g++ --version | head -n1
  32. ldd --version | head -n1 | cut -d" " -f2- # glibc version
  33. grep --version | head -n1
  34. gzip --version | head -n1
  35. cat /proc/version
  36. m4 --version | head -n1
  37. make --version | head -n1
  38. patch --version | head -n1
  39. echo Perl `perl -V:version`
  40. python3 --version
  41. sed --version | head -n1
  42. tar --version | head -n1
  43. makeinfo --version | head -n1 # texinfo version
  44. xz --version | head -n1
  45. echo 'int main(){}' > dummy.c && g++ -o dummy dummy.c
  46. if [ -x dummy ]
  47. then echo "g++ compilation OK";
  48. else echo "g++ compilation failed"; fi
  49. rm -f dummy.c dummy