This creates a generated version number.
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
-AC_INIT([skeinsum], [1.0], [j@jxself.org])
+AC_INIT([skeinsum], m4_esyscmd_s([./version.sh]), [j@jxself.org])
AC_CONFIG_SRCDIR([skein.h])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
-/* Copyright (C) 2014 2015 Jason Self <j@jxself.org>
+/* Copyright (C) 2014 2015 2019 Jason Self <j@jxself.org>
This file is part of skeinsum.
void print_version(void)
{
- printf("skein%dsum 1.0\n", hashbitlen);
+ printf("skein%dsum %s\n", hashbitlen, VERSION);
printf("License GPLv3+: GNU GPL version 3 or later\n");
printf("<http://gnu.org/licenses/gpl.html>\n");
printf("This is free software: you are free to change and redistribute it.\n");
--- /dev/null
+# Copyright (C) 2019 Jason Self <j@jxself.org>
+#
+# This file is part of skeinsum.
+#
+# skeinsum 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 3 of the License, or
+# (at your option) any later version.
+#
+# skeinsum 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 skeinsum. If not, see <http://www.gnu.org/licenses/>.
+
+commit_count=$(git rev-list HEAD --count)
+echo "$commit_count"
\ No newline at end of file