nim.sh 596 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. RETCODE=$(fw_exists $IROOT/nim.installed)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. test -d nim || git clone git://github.com/Araq/Nim.git nim
  5. cd nim
  6. # post version 0.10.2 - most recent as of 2014-12-
  7. git checkout v0.10.2
  8. test -d csources || git clone git://github.com/nim-lang/csources.git
  9. cd csources
  10. sh build.sh
  11. cd ..
  12. bin/nim c koch
  13. # bootstrapping nim's compiler
  14. ./koch boot -d:release
  15. # nim's package manager
  16. test -d nimble || git clone git://github.com/nim-lang/nimble.git
  17. cd nimble
  18. git checkout v0.6
  19. ../bin/nim c src/nimble
  20. mv src/nimble ../bin/
  21. touch $IROOT/nim.installed