getapex.sh 327 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. set -e
  3. # We assume you're running this from the Harvey dir
  4. HARVEY=`pwd`
  5. if [ -z "$OS" ] || [ -z "$ARCH" ]
  6. then
  7. echo We need \$OS and \$ARCH set.
  8. exit
  9. fi
  10. if [ ! -e apex ]
  11. then
  12. git clone https://github.com/Harvey-OS/apex.git
  13. fi
  14. cd apex
  15. APEX=`pwd`
  16. cd src
  17. APEX=$APEX HARVEY=$HARVEY OS=$OS ARCH=$ARCH make
  18. cd ../..