Changeset 24 for trunk/getddl

Show
Ignore:
Timestamp:
11/25/08 22:30:21 (5 years ago)
Author:
robert
Message:

add option for alternative svn paths, dump functions, tables to thier own directories

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/getddl/getddl.pl

    r13 r24  
    6060my (@tables_found, @procs_found); 
    6161my $do_svn_del = 0; 
     62my $svn = '/opt/omni/bin/svn'; 
    6263 
    6364die unless GetOptions( 
     
    7475    'tsuppfn=s' => \$tsfn, 
    7576    'fsuppfn=s' => \$fsfn, 
    76     'svndel' => \$do_svn_del 
     77    'svndel' => \$do_svn_del, 
     78    'svndir=s' => \$svn, 
    7779); 
    7880exit if not $GET_DDL and not $GET_PROCS; # nothing to do 
     
    112114my @only = (); 
    113115 
     116## Fixme - this needs to account for the new data type specific directories. also i dont think it works against remote hosts, but could. 
    114117my $schema_check = sub { 
    115118    my ($fqn) = @_; 
     
    375378 
    376379        svn_check( 
    377             destdir   => $destdir
     380            destdir   => $destdir.'/table'
    378381            fqn       => $fqtn, 
    379382            ddl       => $ddl, 
     
    437440        $proc .= " LANGUAGE '$proc_row->{external_language}';\n"; 
    438441        svn_check( 
    439             destdir   => $destdir
     442            destdir   => $destdir.'/function'
    440443            fqn       => $fqfn, 
    441444            ddl       => $proc,