mirror of
https://github.com/json-c/json-c.git
synced 2026-11-09 07:20:15 +08:00
Start pulling instructions out of RELEASE_CHECKLIST into scripts in reltools/ to semi-automate some of the release process.
This commit is contained in:
1 parent
7788035f45
commit
39c9638924
7 files changed
+424
-52
No files matched your search
@@ -34,15 +34,8 @@ rm -rf "$_lha_probe"
|
||||
# OS gets staged under its own directory.
|
||||
rm -rf "$DIST"; mkdir -p "$STAGE/json-c"
|
||||
|
||||
# Extract the version from either a release tag, or the dev version + abbreviated commit hash
|
||||
GIT_DESCR=$(git describe --tags --always)
|
||||
if [[ "$GIT_DESCR" == json-c-* ]] ; then
|
||||
# e.g. 0.19-20260627
|
||||
JSON_C_VERS=${GIT_DESCR#json-c-}
|
||||
else
|
||||
# e.g. 0.19.99-09e45f6
|
||||
JSON_C_VERS=$(sed -ne'/define JSON_C_VERSION / { s/"$//; s/.*"//; p }' "${ROOT}/json_c_version.h")-${GIT_DESCR}
|
||||
fi
|
||||
. "${ROOT}/reltools/reltools.subr"
|
||||
JSON_C_VERS=$(get_ver_descr)
|
||||
sed -e"s/VERSION/${JSON_C_VERS}/" "$AMIGA_DIR/json-c.readme.template" > "$STAGE/json-c/json-c.readme"
|
||||
|
||||
built=()
|
||||
|
||||
Reference in new issue
Block a user