File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# fetch libssh2 version number from input file and write them to STDOUT
2
2
BEGIN {
3
3
while ((getline < ARGV [ 1 ] ) > 0 ) {
4
- if (match ($0 , /^ #define LIBSSH2_VERSION[ | \t ]+ "[^ " ]+ " /)) {
4
+ if (match ($0 , /^ #define LIBSSH2_COPYRIGHT "[^ " ]+ "$ /)) {
5
+ my_copyright_str = substr ($0 , 28 , length ($0 )- 28 );
6
+ }
7
+ else if (match ($0 , /^ #define LIBSSH2_VERSION[ | \t ]+ "[^ " ]+ " /)) {
5
8
my_ver_str = substr ($3 , 2 , length ($3 ) - 2 );
6
9
split (my_ver_str, v, " ." );
7
10
if (v[ 3 ] )
@@ -17,4 +20,5 @@ BEGIN {
17
20
}
18
21
print " LIBSSH2_VERSION = " my_ver " " ;
19
22
print " LIBSSH2_VERSION_STR = " my_ver_str " " ;
23
+ print " LIBSSH2_COPYRIGHT_STR = " my_copyright_str " " ;
20
24
}
Original file line number Diff line number Diff line change 40
40
#ifndef LIBSSH2_H
41
41
#define LIBSSH2_H 1
42
42
43
+ #define LIBSSH2_COPYRIGHT "2004-2010 The libssh2 project and its contributors."
44
+
43
45
/* We use underscore instead of dash when appending DEV in dev versions just
44
46
to make the BANNER define (used by src/session.c) be a valid SSH
45
47
banner. Release versions have no appended strings and may of course not
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ DEVLARC = $(DEVLDIR).zip
37
37
# Edit the vars below to change NLM target settings.
38
38
TARGET = libssh2
39
39
VERSION = $(LIBSSH2_VERSION)
40
- COPYR = Copyright (c) 2004-2010 The libssh2 project and its contributors.
40
+ COPYR = Copyright (c) $(LIBSSH2_COPYRIGHT_STR)
41
41
WWWURL = http://www.libssh2.org/
42
42
DESCR = libssh2 $(LIBSSH2_VERSION_STR) ($(LIBARCH)) - $(WWWURL)
43
43
MTSAFE = YES
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ DEVLARC = $(DEVLDIR).zip
34
34
# Edit the vars below to change target settings.
35
35
TARGET = libssh2
36
36
VERSION = $(LIBSSH2_VERSION)
37
- COPYR = (c) 2004-2010 The libssh2 project and its contributors.
37
+ COPYR = (c) $(LIBSSH2_COPYRIGHT_STR)
38
38
WWWURL = http://www.libssh2.org/
39
39
DESCR = libssh2 $(LIBSSH2_VERSION_STR)
40
40
#STACK = 64000
You can’t perform that action at this time.
0 commit comments