123456789101112131415161718192021222324 |
- #!/bin/sh
- YEAR=`date +"%Y"`
- if [[ ! -e ~/org/journal/${YEAR}.org.gpg ]] ; then
- touch ~/org/journal/${YEAR}.org
- cat <<EOF > ~/org/journal/${YEAR}.org
- # -*- epa-file-encrypt-to: ("266596F4") -*-
- #+Title: Journal ${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
- gpg -e -r 266596F4 ~/org/journal/${YEAR}.org
- rm ~/org/journal/${YEAR}.org
- fi
- echo ~/org/journal/${YEAR}.org.gpg
|