Преглед изворни кода

Added to generate a health file for the current year

Samuel W. Flint пре 7 година
родитељ
комит
87b5a48537
1 измењених фајлова са 21 додато и 0 уклоњено
  1. 21 0
      org-health-file-current-year

+ 21 - 0
org-health-file-current-year

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