1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/bin/bash # Build ./configure --with-features=big \ --enable-gui \ --enable-perlinterp=yes \ --enable-pythoninterp=yes \ --with-python-config-dir=/usr/lib64/python2.7/config/ \ --enable-python3interp=yes \ --with-python3-config-dir=/usr/lib64/python3.5/config-3.5m/ # Install? if make; then read -p "Successfully built. Install? [Y/n] " -n 1 ans && echo [[ "${ans^^}" == "Y" ]] && { sudo make install || (echo "Install failed." && exit 1) } fi exit 0
You can clone a snippet to your computer for local editing. Learn more.