release.sh 386 B

1234567891011121314151617181920
  1. #!/bin/sh
  2. BASE=pub/kicad/proto_v2
  3. usage()
  4. {
  5. echo "usage: $0 yyyy-mm-dd" 1>&2
  6. exit 1
  7. }
  8. d="[0123456789]"
  9. [ "$1" ] || usage
  10. [ "${1#$d$d$d$d-$d$d-$d$d}" ] && usage
  11. [ "$2" ] && usage
  12. TZ=UTC eeplot -n -d "%{%F %T}s" HEAD:neo900.pro -o neo900.pdf || exit
  13. echo mkdir $BASE/$1 | neo900 || exit
  14. neo900 neo900.pdf $BASE/$1/neo900__proto_v2__by_eeshow.pdf
  15. echo chmod g+w -R $BASE/$1 | neo900