File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -ex
4
4
5
+ URL=https://github.com/tendra/tendra.git
6
+
5
7
VERSION=$1
6
8
if echo ${VERSION} | grep ' trunk' ; then
7
9
VERSION=trunk-$( date +%Y%m%d)
8
10
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
9
20
else
10
21
BRANCH=V${VERSION}
11
22
fi
@@ -22,7 +33,7 @@ PREFIX_BOOTSTRAP=$(pwd)/prefix/bootstrap
22
33
PREFIX_REBUILD=$( pwd) /prefix/rebuild
23
34
24
35
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}
26
37
27
38
# no -j (currently breaks)
28
39
pmake -C ${DIR} TARGETARCH=x32_64 OBJ_BPREFIX=${PREFIX_BOOTSTRAP}
You can’t perform that action at this time.
0 commit comments