stack.sh 399 B

1234567891011121314151617
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/stack.installed)
  3. [ ! "$RETCODE" == 0 ] || { \
  4. source $IROOT/stack.installed
  5. return 0; }
  6. fw_get -o $IROOT/stack.tar.gz https://www.stackage.org/stack/linux-x86_64
  7. tar xzf $IROOT/stack.tar.gz
  8. pushd $IROOT/stack-*
  9. mv stack $IROOT
  10. popd
  11. sudo apt-get -y install perl make automake gcc libgmp3-dev
  12. touch $IROOT/stack.installed
  13. source $IROOT/stack.installed