install.sh 348 B

12345678910111213141516171819
  1. #!/usr/bin/bash
  2. if [ ${EUID} == 0 ]; then
  3. echo "Installing CLAP..."
  4. else
  5. echo "fail: you must be root to do this!"
  6. exit 1
  7. fi
  8. if [ $1 == '']; then
  9. echo "fail: you have to give Python version (eg. 3.3 for python 3.3) as an argument."
  10. else
  11. make tests
  12. make clean
  13. cp -Rv ./redclap/ /usr/lib/python$1/site-packages/
  14. fi