summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-17 12:46:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-17 12:46:42 +0000
commit5b55f9ecb34a00af236b2275ffa9adab492a93b6 (patch)
treead9d9454ef28cd200bcdbacd760a2d33f22adda4 /packages
parent3417e0b0fc580393511fc1c603b7c4c6d022648f (diff)
downloadcurl-5b55f9ecb34a00af236b2275ffa9adab492a93b6.tar.gz
Günter Knauf's NetWare changes.
Diffstat (limited to 'packages')
-rw-r--r--packages/Makefile.am2
-rw-r--r--packages/NetWare/get_ver.awk20
2 files changed, 21 insertions, 1 deletions
diff --git a/packages/Makefile.am b/packages/Makefile.am
index b1cb29364..81584cb35 100644
--- a/packages/Makefile.am
+++ b/packages/Makefile.am
@@ -1,3 +1,3 @@
SUBDIRS = Win32 Linux Solaris EPM DOS vms
-EXTRA_DIST = README
+EXTRA_DIST = README NetWare/get_ver.awk
diff --git a/packages/NetWare/get_ver.awk b/packages/NetWare/get_ver.awk
new file mode 100644
index 000000000..60cf96439
--- /dev/null
+++ b/packages/NetWare/get_ver.awk
@@ -0,0 +1,20 @@
+# fetch libcurl version number from input file and write them to STDOUT
+BEGIN {
+ while ((getline < ARGV[1]) > 0) {
+ if (match ($0, /^#define LIBCURL_VERSION_MAJOR [^"]+/)) {
+ libcurl_ver_major = substr($3, 1, length($3));
+ }
+ else if (match ($0, /^#define LIBCURL_VERSION_MINOR [^"]+/)) {
+ libcurl_ver_minor = substr($3, 1, length($3));
+ }
+ else if (match ($0, /^#define LIBCURL_VERSION_PATCH [^"]+/)) {
+ libcurl_ver_patch = substr($3, 1, length($3));
+ }
+ }
+ libcurl_ver = libcurl_ver_major "," libcurl_ver_minor "," libcurl_ver_patch;
+ libcurl_ver_str = libcurl_ver_major "." libcurl_ver_minor "." libcurl_ver_patch;
+
+ print "LIBCURL_VERSION = " libcurl_ver "";
+ print "LIBCURL_VERSION_STR = " libcurl_ver_str "";
+
+}