File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 37
37
datestamp=` LC_TIME=C date -u`
38
38
39
39
# Replace in-place version number in header file:
40
- sed -i -e ' s/^#define LIBSSH2_VERSION .*/#define LIBSSH2_VERSION "' $libversion ' "/g' \
40
+ sed -i.bak -e ' s/^#define LIBSSH2_VERSION .*/#define LIBSSH2_VERSION "' $libversion ' "/g' \
41
41
-e ' s/^#define LIBSSH2_VERSION_NUM .*/#define LIBSSH2_VERSION_NUM 0x' $numeric ' /g' \
42
42
-e ' s/^#define LIBSSH2_VERSION_MAJOR .*/#define LIBSSH2_VERSION_MAJOR ' $major ' /g' \
43
43
-e ' s/^#define LIBSSH2_VERSION_MINOR .*/#define LIBSSH2_VERSION_MINOR ' $minor ' /g' \
44
44
-e ' s/^#define LIBSSH2_VERSION_PATCH .*/#define LIBSSH2_VERSION_PATCH ' $patch ' /g' \
45
45
-e " s/^#define LIBSSH2_TIMESTAMP .*/#define LIBSSH2_TIMESTAMP \" $datestamp \" /g" \
46
46
$HEADER
47
47
48
+ rm -f " $HEADER .bak"
49
+
48
50
echo " libssh2 version $libversion "
49
51
echo " libssh2 numerical $numeric "
50
52
echo " datestamp $datestamp "
You can’t perform that action at this time.
0 commit comments