X-Git-Url: http://git.equinoxoli.org/?p=migration-tools.git;a=blobdiff_plain;f=mig;fp=mig;h=ee680de82b639558c48f9275fa4f4819ea5ed5b0;hp=0000000000000000000000000000000000000000;hb=d0b69006c088c76a298aa2ebebf85a8e9a983416;hpb=a74fb96ef0ac37554e3a34a15083ca38a42c190a diff --git a/mig b/mig new file mode 100755 index 0000000..ee680de --- /dev/null +++ b/mig @@ -0,0 +1,29 @@ +#!/usr/bin/perl -w +############################################################################### +=pod + +=head1 NAME + +mig - git-like program for tracking and manipulating legacy data files for +migrations. This is a smart wrapper around emig and kmig (for Evergreen and +Koha migrations, respectively). It'll fail if the MIGCMD environment variable +is not set. Environments created through kmig env and emig env should set +MIGCMD accordingly. + +=cut + +############################################################################### + +use strict; +use Env qw( + MIGCMD +); +use Pod::Usage; + +pod2usage(-verbose => 2) if ! $ARGV[0]; +if ($MIGCMD) { + system($MIGCMD,@ARGV); +} else { + die "Please use emig/kmig to load an environment."; +} +