1
1
Форкнуть 0

Added copyright define to libssh2.h and use it for binary builds.

Этот коммит содержится в:
Guenter Knauf 2010-08-15 04:09:01 +02:00
родитель 51a8335486
Коммит 56d0877f07
4 изменённых файлов: 9 добавлений и 3 удалений

Просмотреть файл

@ -1,7 +1,10 @@
# fetch libssh2 version number from input file and write them to STDOUT
BEGIN {
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);
split(my_ver_str, v, ".");
if (v[3])
@ -17,4 +20,5 @@ BEGIN {
}
print "LIBSSH2_VERSION = " my_ver "";
print "LIBSSH2_VERSION_STR = " my_ver_str "";
print "LIBSSH2_COPYRIGHT_STR = " my_copyright_str "";
}

Просмотреть файл

@ -40,6 +40,8 @@
#ifndef LIBSSH2_H
#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
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

Просмотреть файл

@ -37,7 +37,7 @@ DEVLARC = $(DEVLDIR).zip
# Edit the vars below to change NLM target settings.
TARGET = libssh2
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/
DESCR = libssh2 $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
MTSAFE = YES

Просмотреть файл

@ -34,7 +34,7 @@ DEVLARC = $(DEVLDIR).zip
# Edit the vars below to change target settings.
TARGET = libssh2
VERSION = $(LIBSSH2_VERSION)
COPYR = (c) 2004-2010 The libssh2 project and its contributors.
COPYR = (c) $(LIBSSH2_COPYRIGHT_STR)
WWWURL = http://www.libssh2.org/
DESCR = libssh2 $(LIBSSH2_VERSION_STR)
#STACK = 64000