Moved for merge preparation.
[core.git] / contrib / todo-all.sh
diff --git a/contrib/todo-all.sh b/contrib/todo-all.sh
new file mode 100755 (executable)
index 0000000..f3a806a
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+echo "$0: Reading projects..."
+LIST=`find -maxdepth 1 -type d -name "??*" | sort --unique`
+SVN_DIRS="branches tags trunk"
+
+for repos in $LIST; do
+       for svn_dir in $SVN_DIRS; do
+               if test -e "$repos/$svn_dir/todo-builder.sh"; then
+                       echo "$0: Updating TODOs.txt in $repos/$svn_dir"
+                       cd "$repos/$svn_dir/"
+                       sh ./todo-builder.sh
+                       svn add docs/TODOs.txt >/dev/null 2>&1
+                       cd - >/dev/null
+               fi
+       done
+done