diff --git a/Makefile b/Makefile index 58a16c45..a94eeb06 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ CURRENT_VERSION = 1.7.3 VERSION ?= 1.7.4 -VERSION_FILES = index.php bin/ cfg/ *.md doc/Installation.md css/ i18n/ img/ js/package.json js/privatebin.js lib/ Makefile tpl/ tst/ +VERSION_FILES = README.md SECURITY.md doc/Installation.md js/package*.json lib/Controller.php Makefile REGEX_CURRENT_VERSION := $(shell echo $(CURRENT_VERSION) | sed "s/\./\\\./g") REGEX_VERSION := $(shell echo $(VERSION) | sed "s/\./\\\./g") @@ -29,12 +29,11 @@ doc-php: ## Generate JS code documentation. phpdoc --visibility=public,protected,private --target=doc/phpdoc --directory=lib/ increment: ## Increment and commit new version number, set target version using `make increment VERSION=1.2.3`. - for F in `grep -l -R $(REGEX_CURRENT_VERSION) $(VERSION_FILES) | grep -v -e tst/log/ -e ":0" -e CHANGELOG.md`; \ + for F in `grep -l -R $(REGEX_CURRENT_VERSION) $(VERSION_FILES)`; \ do \ sed -i "s/$(REGEX_CURRENT_VERSION)/$(REGEX_VERSION)/g" $$F; \ done - cd tst && phpunit --no-coverage && cd .. - git add $(VERSION_FILES) tpl/ + git add $(VERSION_FILES) git commit -m "incrementing version" sign: ## Sign a release. diff --git a/bin/administration b/bin/administration index d2372248..0a9a52e7 100755 --- a/bin/administration +++ b/bin/administration @@ -1,6 +1,5 @@ #!/usr/bin/env php new Identicon(new GdGenerator()), diff --git a/bin/migrate b/bin/migrate index 76539ab6..a7e42f0d 100755 --- a/bin/migrate +++ b/bin/migrate @@ -1,7 +1,16 @@ #!/usr/bin/env php - + diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index a76409cc..2edf7c29 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -57,7 +57,7 @@ endif; ?> - + diff --git a/tpl/page.php b/tpl/page.php index 81bee299..47c55203 100644 --- a/tpl/page.php +++ b/tpl/page.php @@ -51,7 +51,7 @@ endif; ?> - +