root/todo/tags/0.1.20/contrib/tdrec

Revision 290, 0.5 kB (checked in by athomas, 4 years ago)

Initial import.

  • Property svn:executable set to
Line 
1 #!/bin/bash
2 #
3 # recursive todo - runs todo in all subdirectories which have a todo list in
4 # them.  Kindof useful for me since I stick todo lists everywhere..
5 #
6 # Does not follow symbolic links, to avoid recursing forever.
7 #
8 # Brian Herlihy
9 #
10
11 function tdrec () {
12         ## If todo file exists, say where we are and show todo list
13         if [ -f .todo ] ; then
14                 echo "-- TODO list for `pwd` --"
15                 todo "$@"
16         fi
17         for file in * ; do
18                 if [ -d "./$file" -a ! -h "./$file" ] ; then
19                         ( cd "./$file"; tdrec "$@")
20                 fi
21         done
22 }
23
24 tdrec "$@"
Note: See TracBrowser for help on using the browser.