7a14294a4cf3e478e7ed6f353af8c482ee6b8934
braney
  Wed Jan 13 11:36:28 2021 -0800
search only hg/lib for AS files to build the tableDescriptions table.

diff --git src/test/tbd.wrapper.hgwdev src/test/tbd.wrapper.hgwdev
index bc1d335..8733553 100755
--- src/test/tbd.wrapper.hgwdev
+++ src/test/tbd.wrapper.hgwdev
@@ -1,62 +1,63 @@
 #!/bin/bash
 #
 # This wis a wrapper for the buildTableDescriptions cron job. It will 
 # generate the sql code for the generation of the tableDescriptions, but
 # then will compare it to the sql code that was used to build the current
 # tableDescriptions table. If the code has not changed, it won't regenerate
 # the table.
 #
 # Written by: Jorge Garcia
 # Date: March 18, 2019
 # 
 
 # go to the build directory and clear it, then create all the .sql files
 cd /scratch/build/tbd.new.build.hgwdev
 rm -f *
 $HOME/kent/src/test/buildTableDescriptions.pl \
    -kentSrc $HOME/kent/src \
    -hgConf $HOME/.hg.conf \
+   -subDir hg/lib \
    -noLoad >& ~/hgwdev.buildTableDescriptions.log
 
 # once we have all the new .sql files, compare each new file to the 
 # corresponding file in the current directory. If the new file is different
 # than the current file (or if the file doesn't exist in the current directory)
 # then generate a new tableDescriptions and move the .sql file to the current
 # directory
 echo "Starting tbd on hgwdev.\n" >> /var/tmp/tbd.hgwdev.log
 /bin/date >> /var/tmp/tbd.hgwdev.log
 /bin/mv $HOME/.hg.conf $HOME/.hg.conf.tmpsave
 /bin/cp $HOME/.hg.conf.dev $HOME/.hg.conf
 for i in *
 do
    db=`basename -s .tableDescriptions.sql $i`
    if [ -f ../tbd.current.build.hgwdev/$i ] 
    then
       if ! cmp -s $i ../tbd.current.build.hgwdev/$i
       then 
          # New file different from current file. Create new table
          echo "$i different => Updating\n" >> /var/tmp/tbd.hgwdev.log
          if `/cluster/bin/x86_64/hgsql $db < $i`
          then
            mv $i ../tbd.current.build.hgwdev/$i
          else
            echo "ERROR running hgsql on $db with input $i\n"
            echo "ERROR running hgsql on $db with input $i\n" >> /var/tmp/tbd.hgwdev.log
          fi
       fi
    else
       # There is no current file for this table. Create new table
       echo "$i new => Creating\n" >> /var/tmp/tbd.hgwdev.log
       if `/cluster/bin/x86_64/hgsql $db < $i`
       then
         mv $i ../tbd.current.build.hgwdev/$i
       else
         echo "ERROR running hgsql on $db with input $i\n"
         echo "ERROR running hgsql on $db with input $i\n" >> /var/tmp/tbd.hgwdev.log
       fi
    fi
 done
 /bin/mv $HOME/.hg.conf.tmpsave $HOME/.hg.conf
 
 echo "Finished tbd on hgwdev.\n" >> /var/tmp/tbd.hgwdev.log
 /bin/date >> /var/tmp/tbd.hgwdev.log