diff options
Diffstat (limited to 'fuzz')
-rwxr-xr-x | fuzz/mkfuzzoids.pl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fuzz/mkfuzzoids.pl b/fuzz/mkfuzzoids.pl index 4bf97bc152..9ad96b349a 100755 --- a/fuzz/mkfuzzoids.pl +++ b/fuzz/mkfuzzoids.pl @@ -8,6 +8,11 @@ my $obj_dat_h = $ARGV[0]; +# Output year depends on the date on the input file and the script. +my $YEAR = [localtime([stat($0)]->[9])]->[5] + 1900; +my $iYEAR = [localtime([stat($obj_dat_h)]->[9])]->[5] + 1900; +$YEAR = $iYEAR if $iYEAR > $YEAR; + open IN, '<', $obj_dat_h || die "Couldn't open $obj_dat_h : $!\n"; |