duda.sh 508 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/duda.installed)
  3. [ ! "$RETCODE" == 0 ] || { \
  4. source $IROOT/duda.installed
  5. return 0; }
  6. git clone https://github.com/monkey/dudac.git
  7. DUDA_HOME=$IROOT/dudac
  8. cd $DUDA_HOME
  9. # Get v0.31 (no official releases that work 2015-06-25)
  10. git checkout 7c3d5b03b09fb4cb5f5e338fff72df2e25e95ef0
  11. ./dudac -r
  12. ./dudac -s
  13. echo "export DUDA_HOME=${DUDA_HOME}" > $IROOT/duda.installed
  14. echo -e "export PATH=\$DUDA_HOME:$PATH" >> $IROOT/duda.installed
  15. source $IROOT/duda.installed