Browse Source

Show commit version for development installations (#729)

sphinx-relay-2.0.12
Luke Childs 4 years ago
committed by GitHub
parent
commit
2d6781a153
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      scripts/update/update

9
scripts/update/update

@ -43,6 +43,15 @@ if [[ "${update_type}" == "repo" ]]; then
mkdir -p "${repo_path}" mkdir -p "${repo_path}"
git clone --single-branch --branch "${branch}" "https://github.com/${repo}.git" "${repo_path}" git clone --single-branch --branch "${branch}" "https://github.com/${repo}.git" "${repo_path}"
# Patch version to show development build
commit=$(git --git-dir "${repo_path}/.git" rev-parse --short HEAD)
mv "${repo_path}/info.json" "${repo_path}/info.json.orig"
jq \
--arg commit "${commit}" \
'.version = .version + "-build-" + $commit' \
"${repo_path}/info.json.orig" \
> "${repo_path}/info.json"
# Now hand over to the path updater # Now hand over to the path updater
update_type="path" update_type="path"
update_path="${repo_path}" update_path="${repo_path}"

Loading…
Cancel
Save