summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkraxel <kraxel>2007-08-09 20:08:27 +0000
committerkraxel <kraxel>2007-08-09 20:08:27 +0000
commit739754ef2986c6bc37395a3847ba5baa20b5f5f5 (patch)
tree1ded5e12a7b4ca5f69ac2e89cd4f33be89d82caa
parent99985ea7c656f3199666c2c69636d6467364ac74 (diff)
downloadamtterm-739754ef2986c6bc37395a3847ba5baa20b5f5f5.tar.gz
add version
-rw-r--r--Makefile1
-rw-r--r--VERSION1
-rw-r--r--amtterm.c3
3 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0624633..fa6675e 100644
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,7 @@ bindir ?= $(prefix)/bin
CC ?= gcc
CFLAGS ?= -Os -g
CFLAGS += -Wall -Wno-pointer-sign
+CFLAGS += -DVERSION='"$(shell cat VERSION)"'
TARGETS := amtterm
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..49d5957
--- /dev/null
+++ b/VERSION
@@ -0,0 +1 @@
+0.1
diff --git a/amtterm.c b/amtterm.c
index 70d1816..cfaeca2 100644
--- a/amtterm.c
+++ b/amtterm.c
@@ -311,7 +311,8 @@ static void usage(FILE *fp)
{
fprintf(fp,
"\n"
- "Establish serial-over-lan connection to Intel AMT boxes.\n"
+ "This is " APPNAME ", release " VERSION ", I'll establish\n"
+ "serial-over-lan (sol) connections to your Intel AMT boxes.\n"
"\n"
"usage: " APPNAME " [options] host [port]\n"
"options:\n"