File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# # $1 : version, currently cproc does not have any and only uses master branch.
4
4
# # $2 : destination: a directory or S3 path (eg. s3://...)
5
- # # $3 : last revision successfully build
5
+ # # $3 : last revision successfully build (optional)
6
6
7
7
set -ex
8
8
9
9
ROOT=$PWD
10
10
VERSION=" ${1} "
11
- LAST_REVISION=" ${3} "
11
+ LAST_REVISION=" ${3- } "
12
12
13
13
if [[ " ${VERSION} " != " master" ]]; then
14
14
echo " Only support building master"
Original file line number Diff line number Diff line change 2
2
3
3
# # $1 : version, like v0.9 (tag) or master (branch)
4
4
# # $2 : destination: a directory or S3 path (eg. s3://...)
5
- # # $3 : last revision successfully build
5
+ # # $3 : last revision successfully build (optional)
6
6
set -exu
7
7
8
8
ROOT=$PWD
9
9
VERSION=$1
10
- LAST_REVISION=$3
10
+ LAST_REVISION=${3-}
11
11
FULLNAME=mrustc-${VERSION} -$( date +%Y%m%d)
12
12
13
13
OUTPUT=${ROOT} /${FULLNAME} .tar.xz
Original file line number Diff line number Diff line change 2
2
3
3
# # $1 : version, currently rustc_cg_gcc does not have any and only uses master branch.
4
4
# # $2 : destination: a directory or S3 path (eg. s3://...)
5
- # # $3 : last revision (as mangled below) successfully build
5
+ # # $3 : last revision (as mangled below) successfully build (optional)
6
6
7
7
set -e
8
8
9
9
ROOT=$PWD
10
10
VERSION=" ${1} "
11
- LAST_REVISION=" ${3} "
11
+ LAST_REVISION=" ${3- } "
12
12
13
13
if [[ " ${VERSION} " != " master" ]]; then
14
14
echo " Only support building master"
@@ -19,7 +19,7 @@ GCC_URL="https://github.com/antoyo/gcc.git"
19
19
GCC_BRANCH=" master"
20
20
21
21
CG_GCC_BRANCH=" master"
22
- CG_GCC_URL=" https://github.com/antoyo /rustc_codegen_gcc.git"
22
+ CG_GCC_URL=" https://github.com/rust-lang /rustc_codegen_gcc.git"
23
23
24
24
GCC_REVISION=$( git ls-remote --heads " ${GCC_URL} " " refs/heads/${GCC_BRANCH} " | cut -f 1)
25
25
CG_GCC_REVISION=$( git ls-remote --heads " ${CG_GCC_URL} " " refs/heads/${CG_GCC_BRANCH} " | cut -f 1)
You can’t perform that action at this time.
0 commit comments