#!/usr/bin/env perl use strict; use warnings; use Getopt::Long; use Time::gmtime; my $rv = GetOptions( 'input|I=s' => \my $Input, 'tag|basetag|t' => \my $PrintBase, 'version|v' => \my $PrintVersion, 'pre-release|P' => \my $PrintPTag, 'ncommits|n' => \my $PrintCount, 'sha|s' => \my $PrintSHA, 'force|f' => \my $Force, 'rpm-full' => \my $RPM_FULL, 'rpm-ver' => \my $RPM_VER, 'rpm-rel' => \my $RPM_REL, 'deb' => \my $DEB, 'tar' => \my $TAR, 'help|h' => \my $WantHelp); my $HELPTEXT = <