]> git.madduck.net Git - etc/crontab.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

initial checkin
authormartin f. krafft <madduck@madduck.net>
Sun, 1 Jun 2008 06:44:03 +0000 (08:44 +0200)
committermartin f. krafft <madduck@madduck.net>
Sun, 1 Jun 2008 06:44:03 +0000 (08:44 +0200)
.crontab/.gitignore [new file with mode: 0644]
.crontab/Makefile [new file with mode: 0644]
.crontab/base [new file with mode: 0644]

diff --git a/.crontab/.gitignore b/.crontab/.gitignore
new file mode 100644 (file)
index 0000000..4f1d2d5
--- /dev/null
@@ -0,0 +1 @@
+CRONTAB
diff --git a/.crontab/Makefile b/.crontab/Makefile
new file mode 100644 (file)
index 0000000..de73d90
--- /dev/null
@@ -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 (file)
index 0000000..91c5979
--- /dev/null
@@ -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 --