5be8770a26878928217c735aa67fc78cc1361d91 braney Tue Jun 1 15:51:50 2021 -0700 add cartVersion trackDb entry on alpha and user targets diff --git src/hg/makeDb/trackDb/loadTracks src/hg/makeDb/trackDb/loadTracks index 4f9f1c7..d6c9616 100755 --- src/hg/makeDb/trackDb/loadTracks +++ src/hg/makeDb/trackDb/loadTracks @@ -1,42 +1,45 @@ #!/bin/bash -e usage='loadTracks [options] trackDb hgFindSpec db0 ... options: -release=release -strict + -addVersion -- add cartVersion pseudo-table -raName=trackDb.ra - base name of ra file -grpSql=grp.sql - create a grp table using this sql file -sqlDir=../../lib - directory containg trackDb.sql and hgFindSpec.sql -gbdbList=user@machine - machine with /gbdb on it' UNAME_N=`uname -n` UNAME_N=${UNAME_N/.soe.ucsc.edu/} release='' settings='' local='' strict='' raName='' grpSql='' gbdbList='' sqlDir='../../lib' while [[ $1 == -* ]] ; do case $1 in -release=*) release=$(echo $1 | sed 's/-release=//') ;; -strict) strict=yes;; + -addVersion) + addVersion=yes;; -settings) settings="yes";; -raName=*) raName=$(echo $1 | sed 's/-raName=//') ;; -grpSql=*) grpSql=$(echo $1 | sed 's/-grpSql=//') ;; -sqlDir=*) sqlDir=$(echo $1 | sed 's/-sqlDir=//') ;; -gbdbList=*) gbdbList=$(echo $1 | sed 's/-gbdbList=//') ;; *) echo "invalid option: $1" >&2 exit 1 ;; esac shift @@ -72,30 +75,33 @@ if [ -f $dbpath/visibility.ra ] ; then topts="$topts -visibility=$dbpath/visibility.ra" elif [ -f $org/visibility.ra ] ; then topts="$topts -visibility=$org/visibility.ra" fi if [ -f $dbpath/priority.ra ] ; then topts="$topts -priority=$dbpath/priority.ra" elif [ -f $org/priority.ra ] ; then topts="$topts -priority=$org/priority.ra" fi if [ -n "$release" ] ; then topts="$topts -release=$release" fopts="$fopts -release=$release" qopts="$qopts -release=$release" fi + if [ -n "$addVersion" ] ; then + topts="$topts -addVersion" + fi if [ -n "$strict" ] ; then topts="$topts -strict" fopts="$fopts -strict" qopts="$qopts -strict" fi if [ -n "$settings" ] ; then topts="$topts -settings" fi if [ -n "$raName" ] ; then topts="$topts -raName=$raName" fopts="$fopts -raName=$raName" fi if [ -n "$gbdbList" ] ; then topts="$topts -gbdbList=$gbdbList" fi