diff options
author | Egor Tensin <egor@tensin.name> | 2024-07-01 14:29:47 +0200 |
---|---|---|
committer | Egor Tensin <egor@tensin.name> | 2024-07-01 14:29:47 +0200 |
commit | 6c23a2b543af035e8b26c9ff090527e3461d5e2b (patch) | |
tree | 96fad37a48fbc308662ae90121d02e042cc05c1b | |
parent | bump dependencies (diff) | |
download | fucktipp.ing-6c23a2b543af035e8b26c9ff090527e3461d5e2b.tar.gz fucktipp.ing-6c23a2b543af035e8b26c9ff090527e3461d5e2b.zip |
Makefile: add maintenance alias
Diffstat (limited to '')
-rw-r--r-- | DEVELOPMENT.md | 8 | ||||
-rw-r--r-- | Makefile | 18 |
2 files changed, 25 insertions, 1 deletions
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 18dfbb0..023d46c 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -31,4 +31,10 @@ Development Upgrading dependencies ---------------------- - bundle update +* To upgrade dependencies in Gemfile.lock & push them to the repository: + + make maintenance + +* Manually upgrade dependencies in Gemfile.lock: + + bundle update @@ -14,6 +14,24 @@ ruby: deps: ruby bundle install +.PHONY: maintenance +maintenance: ruby + bundle update + + @git_status="$$( git status --porcelain=v1 )" && \ + if [ -z "$$git_status" ]; then \ + true ; \ + elif [ "$$git_status" = ' M Gemfile.lock' ]; then \ + git commit -am 'bump dependencies' && \ + git push -q ; \ + else \ + echo ; \ + echo '-----------------------------------------------------------------'; \ + echo 'Error: unrecognized modifications in the repository'; \ + echo '-----------------------------------------------------------------'; \ + exit 1; \ + fi + jekyll := bundle exec jekyll .PHONY: build |