diff options
| author | Egor Tensin <egor@tensin.name> | 2026-09-14 16:56:24 +0500 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-09-14 17:05:29 +0500 |
| commit | ea3a5b3e4c74436504afc9f10c153f416e48c3d2 (patch) | |
| tree | 486f288f4a386133812eebdf34395eda1a9d4032 /Makefile | |
| parent | bump dependencies (diff) | |
| download | wireguard-config-ea3a5b3e4c74436504afc9f10c153f416e48c3d2.tar.gz wireguard-config-ea3a5b3e4c74436504afc9f10c153f416e48c3d2.zip | |
Makefile: move out maintenance stuff into a separate script
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 28 |
1 files changed, 1 insertions, 27 deletions
@@ -18,35 +18,9 @@ deps: ruby bundle install npm install -.PHONY: browserify -browserify: src/assets/js/bundle.js - -src/assets/js/bundle.js: package-lock.json - npm exec -- browserify --require ip-address --outfile '$(call escape,$@)' - .PHONY: maintenance maintenance: ruby - bundle config set frozen false - bundle update - - npm update - @$(MAKE) browserify - - @git_status="$$( git status --porcelain=v1 )" && \ - allowed=' M Gemfile.lock| M package-lock.json| M src/assets/js/bundle.js' && \ - if [ -z "$$git_status" ]; then \ - true; \ - elif ! echo "$$git_status" | grep -E -q --invert-match --line-regexp "($$allowed)"; then \ - git commit -am 'bump dependencies' && \ - git push -q; \ - else \ - echo; \ - echo '-----------------------------------------------------------------'; \ - echo 'Error: unrecognized modifications in the repository:'; \ - echo "$$git_status"; \ - echo '-----------------------------------------------------------------'; \ - exit 1; \ - fi + ./scripts/maintenance.sh jekyll := bundle exec jekyll |
