Rev 9658 | Rev 12127 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9658 | Rev 10897 | ||
---|---|---|---|
Line 236... | Line 236... | ||
236 | if [ -d src/data ]; then |
236 | if [ -d src/data ]; then |
237 | datafiles=`cd src/data; ls *.data | sed 's/\.data$//'` |
237 | datafiles=`cd src/data; ls *.data | sed 's/\.data$//'` |
238 | rm -f $dfindex.tmp |
238 | rm -f $dfindex.tmp |
239 | for df in $datafiles; do |
239 | for df in $datafiles; do |
240 | tit=`awk 'NF>0 {if($1 ~ /^[^.:]/) print; exit}' src/data/$df.data` |
240 | tit=`awk 'NF>0 {if($1 ~ /^[^.:]/) print; exit}' src/data/$df.data` |
- | 241 | recordcnt=`awk '/^:/{i++}END{print i}' src/data/$df.data` |
|
241 | [ -z "$tit" ] && tit=$df |
242 | [ -z "$tit" ] && tit=$df |
242 | echo " |
243 | echo "$df,$tit,$recordcnt" >>$dfindex.tmp |
243 | done |
244 | done |
244 | sort -f -t, -k2 <$dfindex.tmp >$dfindex |
245 | sort -f -t, -k2 <$dfindex.tmp >$dfindex |
245 | rm -f $dfindex.tmp |
246 | rm -f $dfindex.tmp |
246 | fi |
247 | fi |
247 | 248 |