Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8fa2322314 | ||
|
|
8982f27220 | ||
|
|
a5f97fcc8c |
2
LICENSE
2
LICENSE
@@ -1,4 +1,4 @@
|
||||
Copyright (c) 2015, angt
|
||||
Copyright (c) 2015-2016, angt
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
||||
@@ -18,7 +18,8 @@ glorytun_SOURCES = \
|
||||
src/db.h
|
||||
|
||||
EXTRA_DIST = \
|
||||
LICENSE \
|
||||
README.md \
|
||||
autogen.sh \
|
||||
version.sh
|
||||
LICENSE \
|
||||
README.md \
|
||||
VERSION \
|
||||
autogen.sh \
|
||||
version.sh
|
||||
|
||||
@@ -928,7 +928,7 @@ int main (int argc, char **argv)
|
||||
|
||||
long retry = 0;
|
||||
|
||||
fd_write_str(state_fd, "INITIALIZED");
|
||||
fd_write_str(state_fd, "INITIALIZED\n");
|
||||
|
||||
while (!gt_close) {
|
||||
if (retry_count>=0 && retry>=retry_count+1) {
|
||||
@@ -995,7 +995,7 @@ int main (int argc, char **argv)
|
||||
|
||||
retry = 0;
|
||||
|
||||
fd_write_str(state_fd, "STARTED");
|
||||
fd_write_str(state_fd, "STARTED\n");
|
||||
|
||||
fd_set rfds;
|
||||
FD_ZERO(&rfds);
|
||||
@@ -1180,7 +1180,7 @@ int main (int argc, char **argv)
|
||||
sock.fd = -1;
|
||||
}
|
||||
|
||||
fd_write_str(state_fd, "STOPPED");
|
||||
fd_write_str(state_fd, "STOPPED\n");
|
||||
}
|
||||
|
||||
freeaddrinfo(ai);
|
||||
|
||||
10
version.sh
10
version.sh
@@ -3,9 +3,11 @@
|
||||
[ -z "${VERSION}" ] && VERSION=`git describe --tags --always 2>/dev/null` \
|
||||
&& VERSION=${VERSION#v}
|
||||
|
||||
[ -z "${VERSION}" ] && VERSION=`basename \`pwd\`` \
|
||||
&& VERSION=${VERSION#*-}
|
||||
[ -z "${VERSION}" ] && VERSION=`cat VERSION 2>/dev/null`
|
||||
|
||||
[ "$1" = "major" ] && VERSION=${VERSION%%.*}
|
||||
[ -z "${VERSION}" ] && VERSION=0.0.0
|
||||
|
||||
printf ${VERSION}
|
||||
[ "$1" = "major" ] && printf ${VERSION%%.*} \
|
||||
&& exit 0
|
||||
|
||||
printf ${VERSION} | tee VERSION
|
||||
|
||||
Reference in New Issue
Block a user