dotfiles

config files and scripts at HOME.
git clone git://git.ricketyspace.net/dotfiles.git
Log | Files | Refs

commit 0ad7b392a502af783021ab0808df91b765420cde
parent 91e9b9974e061aa3d0dba935ad88f848447df7b2
Author: rsiddharth <rsiddharth@ninthfloor.org>
Date:   Mon,  6 Jun 2016 22:22:19 +0000

add .bin/annex-mail

Fuck it.

Diffstat:
.bin/annex-mail | 30++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+), 0 deletions(-)

diff --git a/.bin/annex-mail b/.bin/annex-mail @@ -0,0 +1,30 @@ +#!/bin/sh +# +# Copyright (C) 2016 rsiddharth <s@ricketyspace.net> +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program (see COPYING). If not, see +# <http://www.gnu.org/licenses/>. + +ANNEX_LOCAL=$HOME'/annex' + +if [ -d $ANNEX_LOCAL ]; then + echo 'annexing mail...' + cd $ANNEX_LOCAL + git add gnus/mail + git commit -m 'gnus/mail auto commit.' + echo 'finished annexing mail.' +else + echo '~/annex not found.' + exit 1 +fi