From: Joey Hess Date: Thu, 11 Oct 2007 06:10:02 +0000 (-0400) Subject: add cleanup example X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/0c6bf1b6942db440d4296147175d481d60c27cd4 add cleanup example --- diff --git a/mr b/mr index 8fa688b..6ace1d8 100755 --- a/mr +++ b/mr @@ -350,9 +350,9 @@ sub loadconfig { } } -__DATA__ -# Some useful actions that mr knows about by default. +# Finally, some useful actions that mr knows about by default. # These can be overridden in ~/.mrconfig. +__DATA__ [default] update = \ if [ -d .svn ]; then \ diff --git a/mrconfig b/mrconfig index 02b7893..5635ec0 100644 --- a/mrconfig +++ b/mrconfig @@ -23,3 +23,7 @@ commit = git push kite checkout = svn co svn+ssh://svn.kitenet.net/srv/svn/joey/trunk/home-$(hostname) joey # run svnfix after each update update = svn update && svnfix + +# Teach mr how to run svn cleanup. +[default] +cleanup = if [ -d .svn ]; then svn cleanup ; fi