From 50e72509a87b726c3665ab8ae0269d462acbecc8 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 1 Jun 2008 08:44:03 +0200 Subject: [PATCH] initial checkin --- .crontab/.gitignore | 1 + .crontab/Makefile | 13 +++++++++++++ .crontab/base | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 .crontab/.gitignore create mode 100644 .crontab/Makefile create mode 100644 .crontab/base 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 -- -- 2.39.2