#! /usr/bin/env perl
#
# Copyright (C) 2026 Alexis Bienvenüe <paamc@passoire.fr>
#
# This file is part of Auto-Multiple-Choice
#
# Auto-Multiple-Choice is free software: you can redistribute it
# and/or modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
#
# Auto-Multiple-Choice is distributed in the hope that it will be
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with Auto-Multiple-Choice.  If not, see
# <http://www.gnu.org/licenses/>.

use warnings;
use 5.012;

my $mode = lc($ARGV[0] || 'full');

if($mode eq 'full') {
    print "2026/05/03 v1.7.0+git20260503114422 r:2dece6e6\n";
} elsif($mode eq 'commit') {
    print "r:2dece6e6\n";
} elsif($mode eq 'tag') {
    print "1.7.0+git20260503114422\n";
} elsif($mode eq 'date') {
    print "2026-05-03\n";
} else {
    die "Unknown";
}
