2 cat > js
/line_counts.php
<<EOF
4 /* vim: set expandtab sw=4 ts=4 sts=4: */
6 * An autogenerated file that stores the line counts of javascript files
11 if (! defined('PHPMYADMIN')) {
15 define('LINE_COUNTS', true);
16 \$LINE_COUNT = array();
20 for file in `find js -name '*.js'` ; do
21 lc
=`wc -l $file | sed 's/\([0-9]*\).*/\1/'`
23 entry
="\$LINE_COUNT[\"$file\"] = $lc;"
24 php_code
="$php_code\n$entry"
26 echo -e $php_code >> js
/line_counts.php