X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=mig-bin%2Fmig-sql;h=0f7d9e03a7bf569652033d9143131d60883d2318;hp=5b79e178dd5fb29019eb3d7ba0fce020c65c7e05;hb=e2850e245100f5ec46bb4dfa950864e7a44c6731;hpb=25c27d0a5dea1d52873f20d53cd2c540fc975a61 diff --git a/mig-bin/mig-sql b/mig-bin/mig-sql index 5b79e17..0f7d9e0 100755 --- a/mig-bin/mig-sql +++ b/mig-bin/mig-sql @@ -33,12 +33,16 @@ use Mig; pod2usage(-verbose => 2) if defined $ARGV[0] && $ARGV[0] eq '--help'; -system( - 'psql', - '-vbibstart=' . $BIBSTART, - # TODO inject mig-tracked variables here - @ARGV +my @MYARGV = ( + 'psql' + ,'-vmigschema=' . $MIGSCHEMA ); +if (defined $BIBSTART) { + push @MYARGV, '-vbibstart=' . $BIBSTART; +} +# TODO inject more mig-tracked variables here + +system(@MYARGV, @ARGV); exit 0;