Skip to content

Commit 99430a7

Browse files
committed
Fix remaining issue
1 parent cb0b545 commit 99430a7

4 files changed

Lines changed: 8 additions & 8 deletions

File tree

toolchain/scripts/stage4/install_cereal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ case "$with_cereal" in
5050
# url construction rules:
5151
# - Branch names (master, main, develop) without v prefix
5252
# - Version tags (e.g., 1.0.0) with v prefix
53-
if [[ "${cereal_ver}" =~ ^[0-9a-f]{7}$ ]]; then
53+
if [[ "${cereal_ver}" =~ ^([0-9a-f]{7}|[0-9a-f]{40})$ ]]; then
5454
url="https://codeload.github.com/USCiLab/cereal/tar.gz/${cereal_ver}"
5555
else
5656
url="https://codeload.github.com/USCiLab/cereal/tar.gz/v${cereal_ver}"

toolchain/scripts/stage4/install_libcomm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ case "$with_libcomm" in
5454
# url construction rules:
5555
# - Branch names (master, main, develop) without v prefix
5656
# - Version tags (e.g., 1.0.0) with v prefix
57-
if [[ "${libcomm_ver}" =~ ^[0-9a-f]{7}$ ]]; then
57+
if [[ "${libcomm_ver}" =~ ^([0-9a-f]{7}|[0-9a-f]{40})$ ]]; then
5858
url="https://codeload.github.com/abacusmodeling/LibComm/tar.gz/${libcomm_ver}"
5959
else
6060
url="https://codeload.github.com/abacusmodeling/LibComm/tar.gz/v${libcomm_ver}"

toolchain/scripts/stage4/install_libri.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,19 +45,19 @@ cd "${BUILDDIR}"
4545
case "$with_libri" in
4646
__INSTALL__)
4747
echo "==================== Installing LIBRI ===================="
48-
dirname="LibRI-${short_ver}"
48+
dirname="LibRI-${libri_ver}"
4949
pkg_install_dir="${INSTALLDIR}/$dirname"
5050
#pkg_install_dir="${HOME}/lib/libri/${libri_ver}"
5151
install_lock_file="${pkg_install_dir}/install_successful"
5252
# url construction rules:
5353
# - Branch names (master, main, develop) without v prefix
5454
# - Version tags (e.g., 1.0.0) with v prefix
55-
if [[ "${libri_ver}" =~ ^[0-9a-f]{7}$ ]]; then
55+
if [[ "${libri_ver}" =~ ^([0-9a-f]{7}|[0-9a-f]{40})$ ]]; then
5656
url="https://codeload.github.com/abacusmodeling/LibRI/tar.gz/${libri_ver}"
5757
else
5858
url="https://codeload.github.com/abacusmodeling/LibRI/tar.gz/v${libri_ver}"
5959
fi
60-
filename="LibRI-${short_ver}.tar.gz"
60+
filename="LibRI-${libri_ver}.tar.gz"
6161
if verify_checksums "${install_lock_file}"; then
6262
echo "$dirname is already installed, skipping it."
6363
else

toolchain/scripts/stage4/install_rapidjson.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ cd "${BUILDDIR}"
4444
case "$with_rapidjson" in
4545
__INSTALL__)
4646
echo "==================== Installing RapidJSON ===================="
47-
dirname="rapidjson-${short_ver}"
47+
dirname="rapidjson-${rapidjson_ver}"
4848
pkg_install_dir="${INSTALLDIR}/$dirname"
4949
#pkg_install_dir="${HOME}/lib/rapidjson/${rapidjson_ver}"
5050
install_lock_file="${pkg_install_dir}/install_successful"
5151
# url construction rules:
5252
# - Branch names (master, main, develop) without v prefix
5353
# - Version tags (e.g., 1.0.0) with v prefix
54-
if [[ "${rapidjson_ver}" =~ ^[0-9a-f]{7}$ ]]; then
54+
if [[ "${rapidjson_ver}" =~ ^([0-9a-f]{7}|[0-9a-f]{40})$ ]]; then
5555
url="https://codeload.github.com/Tencent/rapidjson/tar.gz/${rapidjson_ver}"
5656
else
5757
url="https://codeload.github.com/Tencent/rapidjson/tar.gz/v${rapidjson_ver}"
5858
fi
59-
filename="rapidjson-${short_ver}.tar.gz"
59+
filename="rapidjson-${rapidjson_ver}.tar.gz"
6060
if verify_checksums "${install_lock_file}"; then
6161
echo "$dirname is already installed, skipping it."
6262
else

0 commit comments

Comments
 (0)