/firmware/motherboard_upload_daily.sh

http://github.com/makerbot/G3Firmware · Shell · 9 lines · 8 code · 0 blank · 1 comment · 1 complexity · bb2f5d1b18d93842c80aea19c0023957 MD5 · raw file

  1. #!/bin/bash
  2. if [ $# -lt 1 ]
  3. then
  4. echo "Usage: `basename $0` port=PORTNAME [platform=PLATFORM]"
  5. echo "(Valid platforms are rrmbv12, mb24)"
  6. exit 1
  7. fi
  8. scons -c -f SConstruct
  9. BUILD_NAME=\\\"`date '+%Y%m%d'`\ `git show-ref --hash=20 HEAD`\\\" scons -f SConstruct $@ upload