install.sh 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/sh
  2. #
  3. # dev-tools install
  4. #
  5. # installation script for dev-tools utilities
  6. #
  7. # script must be idempotent as to continue retrying in case of failure
  8. # (e.g. network timed out) when invoking again so that temporary i/o or
  9. # network problems can be dealt with by invoking the script again (and
  10. # again) until success. required for unattended build.
  11. #
  12. # usage: ./dev-tools/install.sh
  13. # or: ./install.sh
  14. # or: ./install.sh || ./install.sh || ./install.sh
  15. #
  16. set -eu
  17. cd "$(dirname "$0")"
  18. mkdir -p bin
  19. VERSION_CB="2.24.1"
  20. VERSION_SC="stable"
  21. echo λλλ checkbashisms
  22. if [ ! -x bin/checkbashisms ]; then
  23. wget -qO- "https://deb.debian.org/debian/pool/main/d/devscripts/devscripts_${VERSION_CB}.tar.xz" \
  24. | tar -xJv -O "devscripts-${VERSION_CB}/scripts/checkbashisms.pl" \
  25. > bin/checkbashisms
  26. chmod u+x bin/checkbashisms
  27. fi
  28. bin/checkbashisms --version
  29. echo λλλ shellcheck
  30. if [ ! -x bin/shellcheck ]; then
  31. wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${VERSION_SC}/shellcheck-${VERSION_SC}.linux.x86_64.tar.xz" \
  32. | tar -xJv -O shellcheck-${VERSION_SC}/shellcheck \
  33. > bin/shellcheck
  34. chmod u+x bin/shellcheck
  35. fi
  36. bin/shellcheck --version
  37. echo λλλ composer packages
  38. composer install -v
  39. composer info -D | sort