File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 22
33# # $1 : version, currently cproc does not have any and only uses master branch.
44# # $2 : destination: a directory or S3 path (eg. s3://...)
5- # # $3 : last revision successfully build
5+ # # $3 : last revision successfully build (optional)
66
77set -ex
88
99ROOT=$PWD
1010VERSION=" ${1} "
11- LAST_REVISION=" ${3} "
11+ LAST_REVISION=" ${3- } "
1212
1313if [[ " ${VERSION} " != " master" ]]; then
1414 echo " Only support building master"
Original file line number Diff line number Diff line change 22
33# # $1 : version, like v0.9 (tag) or master (branch)
44# # $2 : destination: a directory or S3 path (eg. s3://...)
5- # # $3 : last revision successfully build
5+ # # $3 : last revision successfully build (optional)
66set -exu
77
88ROOT=$PWD
99VERSION=$1
10- LAST_REVISION=$3
10+ LAST_REVISION=${3-}
1111FULLNAME=mrustc-${VERSION} -$( date +%Y%m%d)
1212
1313OUTPUT=${ROOT} /${FULLNAME} .tar.xz
Original file line number Diff line number Diff line change 22
33# # $1 : version, currently rustc_cg_gcc does not have any and only uses master branch.
44# # $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)
66
77set -e
88
99ROOT=$PWD
1010VERSION=" ${1} "
11- LAST_REVISION=" ${3} "
11+ LAST_REVISION=" ${3- } "
1212
1313if [[ " ${VERSION} " != " master" ]]; then
1414 echo " Only support building master"
@@ -19,7 +19,7 @@ GCC_URL="https://github.com/antoyo/gcc.git"
1919GCC_BRANCH=" master"
2020
2121CG_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"
2323
2424GCC_REVISION=$( git ls-remote --heads " ${GCC_URL} " " refs/heads/${GCC_BRANCH} " | cut -f 1)
2525CG_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