onion.sh 477 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/onion.installed)
  3. [ ! "$RETCODE" == 0 ] || { \
  4. source $IROOT/onion.installed
  5. return 0; }
  6. git clone https://github.com/davidmoreno/onion.git
  7. cd $IROOT/onion
  8. # Latest commit on master as of July 10 2014
  9. # This is post tag v0.7, but pre any later tags
  10. git checkout c460557bfc7d45fb6ba61cb6b7259480a67dde82
  11. mkdir -p build
  12. cd build
  13. cmake ..
  14. make
  15. echo "export ONION_LOG=noinfo" > $IROOT/onion.installed
  16. source $IROOT/onion.installed