Compute the version number dynamically
[skeinsum.git] / skein_cli.c
index 4378da620f85a029f7f9f90f68d1591cd2a07dee..39fb01ac3087204a0fd4d005c2c9d3e5008aeb98 100644 (file)
@@ -1,4 +1,4 @@
-/* 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.
 
@@ -377,7 +377,7 @@ void PrintStringHash(const char *s)
 
 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");