From: martin f. krafft Date: Sun, 1 Jun 2008 06:44:03 +0000 (+0200) Subject: initial checkin X-Git-Url: https://git.madduck.net/etc/crontab.git/commitdiff_plain/50e72509a87b726c3665ab8ae0269d462acbecc8?ds=sidebyside initial checkin --- 50e72509a87b726c3665ab8ae0269d462acbecc8 diff --git a/.crontab/.gitignore b/.crontab/.gitignore new file mode 100644 index 0000000..4f1d2d5 --- /dev/null +++ b/.crontab/.gitignore @@ -0,0 +1 @@ +CRONTAB diff --git a/.crontab/Makefile b/.crontab/Makefile new file mode 100644 index 0000000..de73d90 --- /dev/null +++ b/.crontab/Makefile @@ -0,0 +1,13 @@ +SHELL = /bin/zsh + +CRONTAB: $(shell setopt extended_glob && echo base *~base~CRONTAB~Makefile~.gitignore) + for f in $^; do \ + echo "### from file '$$f'"; \ + cat $$f; \ + echo; \ + done > $@ + crontab - < $@ + +clean: + rm -f CRONTAB +.PHONY: clean diff --git a/.crontab/base b/.crontab/base new file mode 100644 index 0000000..91c5979 --- /dev/null +++ b/.crontab/base @@ -0,0 +1,5 @@ +SHELL=/bin/zsh +MAILTO=madduck+crontab + +38 4 * * * [[ -d $TMPDIR ]] && zargs --no-run-if-empty -- $TMPDIR/**/*(NDa+28) -- rm --one-file-system -- +48 4 * * * [[ -d $TMPDIR ]] && zargs --no-run-if-empty -- $TMPDIR/**/*(ND/m+28^F) -- rmdir --