diff options
author | Gunter Knauf <gk@gknw.de> | 2004-06-08 14:52:32 +0000 |
---|---|---|
committer | Gunter Knauf <gk@gknw.de> | 2004-06-08 14:52:32 +0000 |
commit | 3f739acf24004f736fd3accf3c5e47de38147d74 (patch) | |
tree | a211d5e7d2ff20e04ce77611f9ec34faa6599775 /packages | |
parent | d3454ceb94506010dcc4a069b67ff8e6bbc272cb (diff) |
converted to UNIX format.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/NetWare/get_ver.awk | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/packages/NetWare/get_ver.awk b/packages/NetWare/get_ver.awk index 60cf96439..ca434f358 100644 --- a/packages/NetWare/get_ver.awk +++ b/packages/NetWare/get_ver.awk @@ -1,20 +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 "";
-
-}
+# 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 ""; + +} |