Skip to content

Commit 3534cb5

Browse files
committed
revisioncheck
1 parent 95177de commit 3534cb5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

build/buildTenDRA.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,21 @@
22

33
set -ex
44

5+
URL=https://github.com/tendra/tendra.git
6+
57
VERSION=$1
68
if echo ${VERSION} | grep 'trunk'; then
79
VERSION=trunk-$(date +%Y%m%d)
810
BRANCH=main
11+
LAST_REVISION="${3}"
12+
13+
REVISION=$(git ls-remote --heads "${URL}" "refs/heads/${BRANCH}" | cut -f 1)
14+
echo "ce-build-revision:${REVISION}"
15+
16+
if [[ "${REVISION}" == "${LAST_REVISION}" ]]; then
17+
echo "ce-build-status:SKIPPED"
18+
exit
19+
fi
920
else
1021
BRANCH=V${VERSION}
1122
fi
@@ -22,7 +33,7 @@ PREFIX_BOOTSTRAP=$(pwd)/prefix/bootstrap
2233
PREFIX_REBUILD=$(pwd)/prefix/rebuild
2334

2435
DIR=$(pwd)/tendra
25-
git clone --depth 1 -b ${BRANCH} https://github.com/tendra/tendra.git ${DIR}
36+
git clone --depth 1 -b ${BRANCH} ${URL} ${DIR}
2637

2738
# no -j (currently breaks)
2839
pmake -C ${DIR} TARGETARCH=x32_64 OBJ_BPREFIX=${PREFIX_BOOTSTRAP}

0 commit comments

Comments
 (0)