]> mj.ucw.cz Git - pciutils.git/commitdiff
AmigaOS: Construct version string automatically
authorMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:14:54 +0000 (23:14 +0100)
committerMartin Mares <mj@ucw.cz>
Sat, 17 Feb 2024 22:14:54 +0000 (23:14 +0100)
lib/aos-expansion.c
lib/configure

index 36a45959ade92b3b20c305ed919820dc1f210089..7f927a477b81d14ccae447a8fbbe2168bfcf1669 100644 (file)
@@ -32,7 +32,7 @@
 
 
 // custom Amiga x.y version tag
-#define VERSTAG "\0$VER: lspci 3.10 (02.01.2024) AmigaOS4 port"
+#define VERSTAG "\0$VER: pciutils " PCILIB_VERSION " (" PCILIB_DATE_AMIGAOS ") AmigaOS4 port"
 
 
 /*** AmigaOS access support ***/
index 8385daa061954c220c9dd85185f4f496eda18242..8bdfc028d6f6df55ef4d1f9b1f47721159b1f77b 100755 (executable)
@@ -349,4 +349,5 @@ else
 fi
 
 echo >>$c "#define PCILIB_VERSION \"$VERSION\""
+echo >>$c "#define PCILIB_DATE_AMIGAOS \"`echo $DATE | sed 's/\(....\)-\(..\)-\(..\)/\3.\2.\1/'`\""
 sed '/"/{s/^#define \([^ ]*\) "\(.*\)"$/\1=\2/;p;d;};s/^#define \(.*\)/\1=1/' <$c >>$m