#!/bin/sh YEAR=$1 if [ ! -e "${HOME}/org/notes/${YEAR}.org" ] ; then touch "${HOME}/org/notes/${YEAR}.org" cat < "${HOME}/org/notes/${YEAR}.org" #+Title: Notes 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 "${HOME}/org/notes/${YEAR}.org" cd "${HOME}/org/" || exit 1 git add "notes/${YEAR}.org" && git commit -m "Added the notes file for ${YEAR}"