mirror of
https://github.com/awslabs/aws-crt-php.git
synced 2026-08-18 01:57:13 +00:00
test
This commit is contained in:
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -ex
|
||||
|
||||
BASENAME=${0}
|
||||
TOOLS_DIR=$(dirname ${BASENAME})
|
||||
WORK_DIR="${TOOLS_DIR}/.."
|
||||
|
||||
cd "${WORK_DIR}"
|
||||
|
||||
version_with_v=$(git describe --tags --abbrev=0)
|
||||
VERSION=$(echo ${version_with_v} | cut -f2 -dv)
|
||||
sed -i "s/#define CRT_VERSION .*/#define CRT_VERSION \"$VERSION\"/g" ext/crt.c
|
||||
|
||||
export VERSION="${VERSION}"
|
||||
Reference in New Issue
Block a user