mirror of
https://github.com/libssh2/libssh2.git
synced 2025-08-08 19:02:07 +03:00
Added copyright define to libssh2.h and use it for binary builds.
This commit is contained in:
@@ -1,7 +1,10 @@
|
|||||||
# fetch libssh2 version number from input file and write them to STDOUT
|
# fetch libssh2 version number from input file and write them to STDOUT
|
||||||
BEGIN {
|
BEGIN {
|
||||||
while ((getline < ARGV[1]) > 0) {
|
while ((getline < ARGV[1]) > 0) {
|
||||||
if (match ($0, /^#define LIBSSH2_VERSION[ |\t]+"[^"]+"/)) {
|
if (match ($0, /^#define LIBSSH2_COPYRIGHT "[^"]+"$/)) {
|
||||||
|
my_copyright_str = substr($0, 28, length($0)-28);
|
||||||
|
}
|
||||||
|
else if (match ($0, /^#define LIBSSH2_VERSION[ |\t]+"[^"]+"/)) {
|
||||||
my_ver_str = substr($3, 2, length($3) - 2);
|
my_ver_str = substr($3, 2, length($3) - 2);
|
||||||
split(my_ver_str, v, ".");
|
split(my_ver_str, v, ".");
|
||||||
if (v[3])
|
if (v[3])
|
||||||
@@ -17,4 +20,5 @@ BEGIN {
|
|||||||
}
|
}
|
||||||
print "LIBSSH2_VERSION = " my_ver "";
|
print "LIBSSH2_VERSION = " my_ver "";
|
||||||
print "LIBSSH2_VERSION_STR = " my_ver_str "";
|
print "LIBSSH2_VERSION_STR = " my_ver_str "";
|
||||||
|
print "LIBSSH2_COPYRIGHT_STR = " my_copyright_str "";
|
||||||
}
|
}
|
||||||
|
@@ -40,6 +40,8 @@
|
|||||||
#ifndef LIBSSH2_H
|
#ifndef LIBSSH2_H
|
||||||
#define LIBSSH2_H 1
|
#define LIBSSH2_H 1
|
||||||
|
|
||||||
|
#define LIBSSH2_COPYRIGHT "2004-2010 The libssh2 project and its contributors."
|
||||||
|
|
||||||
/* We use underscore instead of dash when appending DEV in dev versions just
|
/* We use underscore instead of dash when appending DEV in dev versions just
|
||||||
to make the BANNER define (used by src/session.c) be a valid SSH
|
to make the BANNER define (used by src/session.c) be a valid SSH
|
||||||
banner. Release versions have no appended strings and may of course not
|
banner. Release versions have no appended strings and may of course not
|
||||||
|
@@ -37,7 +37,7 @@ DEVLARC = $(DEVLDIR).zip
|
|||||||
# Edit the vars below to change NLM target settings.
|
# Edit the vars below to change NLM target settings.
|
||||||
TARGET = libssh2
|
TARGET = libssh2
|
||||||
VERSION = $(LIBSSH2_VERSION)
|
VERSION = $(LIBSSH2_VERSION)
|
||||||
COPYR = Copyright (c) 2004-2010 The libssh2 project and its contributors.
|
COPYR = Copyright (c) $(LIBSSH2_COPYRIGHT_STR)
|
||||||
WWWURL = http://www.libssh2.org/
|
WWWURL = http://www.libssh2.org/
|
||||||
DESCR = libssh2 $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
|
DESCR = libssh2 $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
|
||||||
MTSAFE = YES
|
MTSAFE = YES
|
||||||
|
@@ -34,7 +34,7 @@ DEVLARC = $(DEVLDIR).zip
|
|||||||
# Edit the vars below to change target settings.
|
# Edit the vars below to change target settings.
|
||||||
TARGET = libssh2
|
TARGET = libssh2
|
||||||
VERSION = $(LIBSSH2_VERSION)
|
VERSION = $(LIBSSH2_VERSION)
|
||||||
COPYR = (c) 2004-2010 The libssh2 project and its contributors.
|
COPYR = (c) $(LIBSSH2_COPYRIGHT_STR)
|
||||||
WWWURL = http://www.libssh2.org/
|
WWWURL = http://www.libssh2.org/
|
||||||
DESCR = libssh2 $(LIBSSH2_VERSION_STR)
|
DESCR = libssh2 $(LIBSSH2_VERSION_STR)
|
||||||
#STACK = 64000
|
#STACK = 64000
|
||||||
|
Reference in New Issue
Block a user