PLD-doc: make-todo.sh - corrections

glen glen at pld-linux.org
Fri Dec 30 20:32:40 CET 2005


Author: glen                         Date: Fri Dec 30 19:32:40 2005 GMT
Module: PLD-doc                       Tag: HEAD
---- Log message:
- corrections

---- Files affected:
PLD-doc:
   make-todo.sh (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: PLD-doc/make-todo.sh
diff -u PLD-doc/make-todo.sh:1.1 PLD-doc/make-todo.sh:1.2
--- PLD-doc/make-todo.sh:1.1	Fri Dec 30 20:25:07 2005
+++ PLD-doc/make-todo.sh	Fri Dec 30 20:32:35 2005
@@ -3,11 +3,11 @@
 TODO="specs-auto-todo.txt"
 
 (cd $SPECS && cvs up)
-grep -r '^# TODO' $SPECS > todo-list
+grep -rl '^# TODO' $SPECS > todo-list
 
 > $TODO
-for a in `cat todo-list`; do
+for a in `grep "^$SPECS/[^/]*.spec\$" todo-list | LC_ALL=C sort`; do
 	echo "$(basename $a):" >> $TODO
-	sed -n -e '/^# TODO/,/[^#]/{s/^# *//;/^TODO/!p}' $a >> $TODO
+	sed -n -e '/^# TODO/,/[^#]/{s/^# *//;p}' $a >> $TODO
 	echo "" >> $TODO
 done
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/PLD-doc/make-todo.sh?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list