Skip to content
Myr

[Dev Deps] update `markdown-link-check`

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent 65ded65 · Browse files · 3 files+31 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+31 added−14 removed

  • other:+31 added−14 removed

3 files+31 added−14 removed

modified:Makefile+29 added-12 removed
70 unmodified lines
71.PHONY: _ensure-clean72_ensure-clean:73 @[ -z "$$(git status --porcelain --untracked-files=no || echo err)" ] || { echo "Workspace is not clean; please commit changes first." >&2; exit 2; }7475# Resolves $(TAG) against the most recent version tag; sets $$old_ver and $$new_ver in the recipe's shell.76define RESOLVE_VERSIONS77old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \78new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \79if printf "$$new_ver" | grep -q '^[0-9]'; then \80 semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \81 semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \82else \83 new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \84fi85endef8687# Prints the release notes that `make TAG=<versionOrIncrementSpec> release` would use; invoke the same way.88.PHONY: release-notes89release-notes: _ensure-tag _ensure-current-version90 @$(RESOLVE_VERSIONS); \91 ./release-notes.sh "v$$new_ver"9293# Makes a release; invoke with `make TAG=<versionOrIncrementSpec> release`.94.PHONY: release95release: _ensure-tag _ensure-clean _ensure-current-version78 @old_ver=`git describe --abbrev=0 --tags --match 'v[0-9]*.[0-9]*.[0-9]*'` || { echo "Failed to determine current version." >&2; exit 1; }; old_ver=$${old_ver#v}; \79 new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \80 if printf "$$new_ver" | grep -q '^[0-9]'; then \81 semver "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be major.minor.patch' >&2; exit 2; }; \82 semver -r "> $$old_ver" "$$new_ver" >/dev/null || { echo 'Invalid version number specified: $(TAG) - must be HIGHER than current one.' >&2; exit 2; } \83 else \84 new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \85 fi; \86 printf "=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \87 replace "$$old_ver" "$$new_ver" $(VERSIONED_FILES) && \88 git commit -m "v$$new_ver" $(VERSIONED_FILES) && \89 git tag -a "v$$new_ver"96 @$(RESOLVE_VERSIONS); \97 notes_file=`mktemp` || { echo 'Failed to create a temp file for the release notes.' >&2; exit 1; }; \98 trap 'rm -f "$$notes_file"' EXIT; \99 ./release-notes.sh "v$$new_ver" > "$$notes_file" || { echo 'Failed to generate release notes.' >&2; exit 1; }; \100 echo '=== Release notes: ==='; \101 cat "$$notes_file"; \102 printf "\n=== Bumping version **$$old_ver** to **$$new_ver** before committing and tagging with the above notes:\n=== TYPE 'proceed' TO PROCEED, anything else to abort: " && read response && [ "$$response" = 'proceed' ] || { echo 'Aborted.' >&2; exit 2; }; \103 old_ver_re=`printf '%s' "$$old_ver" | sed 's/[.]/\\\\./g'` && \104 replace "$$old_ver_re" "$$new_ver" $(VERSIONED_FILES) && \105 git commit -F "$$notes_file" $(VERSIONED_FILES) && \106 git tag -a -F "$$notes_file" "v$$new_ver"
modified:package.json+1 added-1 removed
modified:README.md+1 added-1 removed
1130 unmodified lines
1131 There's a bug in recent versions of Apple's system [`clang`](https://clang.llvm.org/) compiler.1132 If one of these broken versions is installed on your system, the above step will likely still succeed even if you didn't include the `--shared-zlib` flag.1133 However, later, when you attempt to `npm install` something using your old version of node.js, you will see `incorrect data check` errors.1134 If you want to avoid the possible hassle of dealing with this, include that flag.1135 For more details, see [this issue](https://github.com/nodejs/node/issues/39313) and [this comment](https://github.com/nodejs/node/issues/39313#issuecomment-90.40.676)1135 For more details, see [this issue](https://github.com/nodejs/node/issues/39313) and [this comment](https://github.com/nodejs/node/issues/39313#issuecomment-902395576)11361137- Exit back to your native shell.11381139 ```sh
77 unmodified lines