[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
Provenance
- Commit
0b8ed9f- Tree
42fd18a- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
65ded65
3 files changed+31 added−14 removed
modified:Makefile+29 added-12 removed
70 unmodified lines71 .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; }74 75+# Resolves $(TAG) against the most recent version tag; sets $$old_ver and $$new_ver in the recipe's shell.76+define RESOLVE_VERSIONS77+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}; \78+new_ver=`echo "$(TAG)" | sed 's/^v//'`; new_ver=$${new_ver:-patch}; \79+if 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; } \82+else \83+ new_ver=`semver -i "$$new_ver" "$$old_ver"` || { echo 'Invalid version-increment specifier: $(TAG)' >&2; exit 2; } \84+fi85+endef86+87+# Prints the release notes that `make TAG=<versionOrIncrementSpec> release` would use; invoke the same way.88+.PHONY: release-notes89+release-notes: _ensure-tag _ensure-current-version90+ @$(RESOLVE_VERSIONS); \91+ ./release-notes.sh "v$$new_ver"92+93 # Makes a release; invoke with `make TAG=<versionOrIncrementSpec> release`.94 .PHONY: release95 release: _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
43 unmodified lines444546474848495051525343 unmodified lines "devDependencies": { "dockerfile_lint": "^0.3.4", "doctoc": "^2.5.0", "eclint": "^2.8.1", "markdown-link-check": "^3.14.2", "markdown-link-check": "^3.15.0", "replace": "^1.2.2", "semver": "^7.8.5", "urchin": "^0.0.5" }}modified:README.md+1 added-1 removed
1130 unmodified lines1131 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)1136 1137 - Exit back to your native shell.1138 1139 ```sh77 unmodified lines