From 6a928ec93da30723f950a302cfdd6b3cf3f360d5 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 27 Jan 2013 16:03:14 -0500 Subject: move .crontab* into .config/cron --- .config/cron/crontab | 3 +++ .crontab | 3 --- Makefile | 8 +++----- 3 files changed, 6 insertions(+), 8 deletions(-) create mode 100644 .config/cron/crontab delete mode 100644 .crontab diff --git a/.config/cron/crontab b/.config/cron/crontab new file mode 100644 index 0000000..e396cef --- /dev/null +++ b/.config/cron/crontab @@ -0,0 +1,3 @@ +# m h dom mon dow command +*/5 * * * * cd $HOME/.config && make +*/5 * * * * offlineimap-runner 2 -u quiet diff --git a/.crontab b/.crontab deleted file mode 100644 index ca405cf..0000000 --- a/.crontab +++ /dev/null @@ -1,3 +0,0 @@ -# m h dom mon dow command -*/5 * * * * cd $HOME && make -*/5 * * * * offlineimap-runner 2 -u quiet diff --git a/Makefile b/Makefile index 1335456..5e4fb21 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,11 @@ clean: .git.info.exclude: .git.info.exclude.in $(shell echo .??*/) ( cat $<; find $^ -type f -name 'CACHEDIR.TAG' -printf '%h\n'|sed 's@^\./@/@' ) > $@ -.crontab.cookie: .crontab .crontab.local - -(cat $^; echo) | crontab - 2>/dev/null +.cache/cron/cookie: .config/cron + -(cat $^/*; echo) | crontab - 2>/dev/null + mkdir -p '$(@D)' date > '$@' -# don't do anything, just create these if they doesn't exist -.crontab.local: - touch '$@' Maildir: mkdir -p '$@'/{cur,new,tmp} Maildir/%: | Maildir -- cgit v1.2.3-54-g00ecf