org-health-file-current-year 557 B

123456789101112131415161718192021
  1. #!/bin/zsh -f
  2. YEAR=`date +"%Y"`
  3. if [[ ! -e ~/org/health/${YEAR}.org ]] ; then
  4. touch ~/org/health/${YEAR}.org
  5. cat <<EOF > ~/org/health/${YEAR}.org
  6. #+Title: Health Data from ${YEAR}
  7. #+AUTHOR: Sam Flint
  8. #+EMAIL: swflint@flintfam.org
  9. #+DATE: \today
  10. #+INFOJS_OPT: view:info toc:nil path:http://flintfam.org/org-info.js
  11. #+OPTIONS: toc:nil H:5 ':t *:t d:nil stat:nil todo:nil
  12. #+LATEX_CLASS_OPTIONS: [10pt,twocolumn]
  13. #+LATEX_HEADER: \usepackage[landscape,margin=0.125 in]{geometry}
  14. #+LATEX_HEADER: \pagestyle{empty}
  15. EOF
  16. fi
  17. echo ~/org/health/${YEAR}.org