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.

45 lines
1.3 KiB

4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
  1. #!/bin/sh
  2. if [ -e /usr/bin/apt-get ]; then
  3. export DEBIAN_FRONTEND=noninteractive
  4. apt-get -qy update
  5. apt-get -qy --no-install-suggests --no-install-recommends \
  6. install \
  7. ca-certificates \
  8. build-essential \
  9. git \
  10. g++ \
  11. debhelper \
  12. automake \
  13. libtool \
  14. lsb-release
  15. apt-get -qy --no-install-suggests --no-install-recommends install python
  16. apt-get -qy --no-install-suggests --no-install-recommends install python3
  17. elif [ -e /usr/bin/dnf ]; then
  18. dnf -y update
  19. dnf -y install \
  20. git rpm-build gcc-c++ make which python3 automake \
  21. libtool gettext-devel
  22. elif [ -e /usr/bin/yum ]; then
  23. yum -y update
  24. yum -y install \
  25. git rpm-build gcc-c++ make which \
  26. python python-argparse \
  27. automake libtool gettext-devel
  28. elif [ -e /sbin/apk ]; then
  29. apk add \
  30. abuild git gcc g++ make autoconf \
  31. automake libtool gettext-dev linux-headers
  32. elif [ -e /usr/sbin/pkg ]; then
  33. pkg install \
  34. git gmake gcc autoconf automake libtool \
  35. gettext-tools
  36. fi
  37. if [ ! -e /usr/bin/python ]; then
  38. if [ -e /usr/bin/python3 ]; then
  39. ln -s /usr/bin/python3 /usr/bin/python
  40. elif [ -e /usr/bin/python2 ]; then
  41. ln -s /usr/bin/python2 /usr/bin/python
  42. fi
  43. fi