+2008-11-11: Paul Varner <fuzzyray@gentoo.org>
+ * echangelog: Add --strict option (Bug 246242).
+
2008-09-17: Paul Varner <fuzzyray@gentoo.org>
* euse: Fix check_sanity function to use get_all_make_defaults
function when checking for the make.defaults files in the profile.
# Global variables
my (@files, @ebuilds, @conflicts, @trivial, @unknown, @new_versions, %actions);
-my ($input, $editor, $entry, $user, $date, $text, $version, $year, $vcs);
+my ($input, $editor, $entry, $user, $date, $text, $version, $year, $vcs, $strict);
my %vcs = ( cvs => { diff => "cvs -f diff -U0",
status => "cvs -fn up",
);
+use Getopt::Long;
+$strict = 0;
+GetOptions('strict' => \$strict);
+
# Figure out what kind of repo we are in.
if ( -d "CVS" ) {
print STDERR "** should be run after all affected files have been added and/or\n";
print STDERR "** modified. Did you forget to $vcs add?\n";
print STDERR "**\n";
+ if ($strict) {
+ print STDERR "** In strict mode, exiting\n";
+ exit 1;
+ }
@files = sort sortfunc @trivial;
@files = qw/ChangeLog/ unless @files; # last resort to put something in the list
}