Add script to extract the version from the header file and remove DOCKER_VERSION
This commit is contained in:
parent
0b2d816320
commit
9f98628709
@ -1 +0,0 @@
|
|||||||
7.5.0
|
|
7
makefile
7
makefile
@ -30,7 +30,7 @@ uninstall:
|
|||||||
xargs rm -fv < build/install_manifest.txt
|
xargs rm -fv < build/install_manifest.txt
|
||||||
|
|
||||||
tag:
|
tag:
|
||||||
git tag v"`cat DOCKER_VERSION`"
|
git tag v"`sh tools/extract_version.sh`"
|
||||||
|
|
||||||
xcode:
|
xcode:
|
||||||
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 -GXcode && open ixwebsocket.xcodeproj
|
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_TLS=1 -DUSE_WS=1 -DUSE_TEST=1 -GXcode && open ixwebsocket.xcodeproj
|
||||||
@ -41,11 +41,14 @@ xcode_openssl:
|
|||||||
.PHONY: docker
|
.PHONY: docker
|
||||||
|
|
||||||
NAME := bsergean/ws
|
NAME := bsergean/ws
|
||||||
TAG := $(shell cat DOCKER_VERSION)
|
TAG := $(shell sh tools/extract_version.sh)
|
||||||
IMG := ${NAME}:${TAG}
|
IMG := ${NAME}:${TAG}
|
||||||
LATEST := ${NAME}:latest
|
LATEST := ${NAME}:latest
|
||||||
BUILD := ${NAME}:build
|
BUILD := ${NAME}:build
|
||||||
|
|
||||||
|
print_version:
|
||||||
|
@echo 'IXWebSocket version =>' ${TAG}
|
||||||
|
|
||||||
docker_test:
|
docker_test:
|
||||||
docker build -f docker/Dockerfile.debian -t bsergean/ixwebsocket_test:build .
|
docker build -f docker/Dockerfile.debian -t bsergean/ixwebsocket_test:build .
|
||||||
|
|
||||||
|
3
tools/extract_version.sh
Normal file
3
tools/extract_version.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
#/bin/sh
|
||||||
|
|
||||||
|
grep VERSION ixwebsocket/IXWebSocketVersion.h | awk '{print $3}' | tr -d \"
|
Loading…
Reference in New Issue
Block a user