leiningen.sh 462 B

1234567891011121314151617
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/lein.installed)
  3. [ ! "$RETCODE" == 0 ] || { \
  4. source $IROOT/lein.installed
  5. return 0; }
  6. mkdir -p lein/bin
  7. fw_get -o leinbin https://raw.github.com/technomancy/leiningen/stable/bin/lein
  8. mv leinbin lein/bin/lein
  9. chmod +x lein/bin/lein
  10. LEIN_HOME=$IROOT/lein
  11. echo "export LEIN_HOME=${LEIN_HOME}" > $IROOT/lein.installed
  12. echo -e "export PATH=\$LEIN_HOME/bin:\$PATH" >> $IROOT/lein.installed
  13. source $IROOT/lein.installed