Browse Source
Show commit version for development installations (#729)
sphinx-relay-2.0.12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
0 deletions
-
scripts/update/update
|
|
@ -43,6 +43,15 @@ if [[ "${update_type}" == "repo" ]]; then |
|
|
|
mkdir -p "${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 |
|
|
|
update_type="path" |
|
|
|
update_path="${repo_path}" |
|
|
|