From: Martin Mares Date: Sat, 17 Feb 2024 22:14:54 +0000 (+0100) Subject: AmigaOS: Construct version string automatically X-Git-Tag: v3.11.0~9^2~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=d66c6ff6b363c48680766dd4ab8087a6e57baef5;p=pciutils.git AmigaOS: Construct version string automatically --- diff --git a/lib/aos-expansion.c b/lib/aos-expansion.c index 36a4595..7f927a4 100644 --- a/lib/aos-expansion.c +++ b/lib/aos-expansion.c @@ -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 ***/ diff --git a/lib/configure b/lib/configure index 8385daa..8bdfc02 100755 --- a/lib/configure +++ b/lib/configure @@ -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