diff options
author | Martin Mares <mj@ucw.cz> | 2024-02-17 23:14:54 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2024-02-17 23:14:54 +0100 |
commit | d66c6ff6b363c48680766dd4ab8087a6e57baef5 (patch) | |
tree | ddc97281faa3d54b6be899d9a2ea8ab45ac54144 | |
parent | 5b52ae794a6fcf77363a78a42278da8a4feaf225 (diff) | |
download | pciutils-d66c6ff6b363c48680766dd4ab8087a6e57baef5.tar.gz |
AmigaOS: Construct version string automatically
-rw-r--r-- | lib/aos-expansion.c | 2 | ||||
-rwxr-xr-x | lib/configure | 1 |
2 files changed, 2 insertions, 1 deletions
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 |