#!/usr/bin/perl
#
# write_yaml - Write YAML file; we cannot get ExtUtils::MakeMaker
#              to do this, as we don't use the "dist" target to
#              build the tarball but out own mechanim to deal
#              with the Morgan Stanley source environment.
#
# $Id: write_yaml,v 165.2 2008/12/01 18:18:03 biersma Exp $
#

use strict;
use Getopt::Long;

our %args;
GetOptions(\%args, qw(release=s)) || die "Invalid argument";

open (META, '>', 'META.yml') ||
  die "Cannot create output file: $!";
print META <<"_END_META_";
meta-spec:
    url:     http://module-build.sourceforge.net/META-spec-v1.3.html
    version: 1.3
name:         DB2-Admin
abstract:     Interface to DB2 Administrative API (non-SQL functions)
author:       Hildo Biersma <Hildo.Biersma\@MorganStanley.com>
version:      $args{release}
version_from: lib/DB2/Admin.pm
installdirs:  site
build_requires:
    Params::Validate: 0.87
configure_requires:
    Params::Validate: 0.87
requires:
    Params::Validate: 0.87
recommends:
    Test::Pod: 1.26
    Test::Simple: 0.62
license:      LGPL
distribution_type: module
generated_by: $0
_END_META_
;
close(META);

exit(0);
