Ease Framework Twitter Bootstrap 4 Support
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

68 lines
1.9 KiB

repoversion=$(shell LANG=C aptitude show php-ease-bootstrap4 | grep Version: | awk '{print $$2}')
nextversion=$(shell echo $(repoversion) | perl -ne 'chomp; print join(".", splice(@{[split/\./,$$_]}, 0, -1), map {++$$_} pop @{[split/\./,$$_]}), "\n";')
#DESTDIR ?= debian/php-ease-bootstrap4/DEBIAN
#libdir ?= /usr/share/php/Ease
#docdir ?= /doc/ease-bootstrap/bootstrap
all: build install
fresh:
git pull origin master
PACKAGE=`cat debian/composer.json | grep '"name"' | head -n 1 | awk -F'"' '{print $4}'`; \
VERSION=`cat debian/composer.json | grep version | awk -F'"' '{print $4}'`; \
dch -b -v "${VERSION}" --package ${PACKAGE} "$CHANGES" \
composer install
#install:
# mkdir -p $(DESTDIR)$(libdir)
# cp -r src/Ease/ $(DESTDIR)$(libdir)
# cp -r debian/composer.json $(DESTDIR)$(libdir)
# mkdir -p $(DESTDIR)$(docdir)
# cp -r docs $(DESTDIR)$(docdir)
#build: doc
# echo build;
clean:
rm -rf vendor composer.lock
rm -rf debian/php-vitexsoftware-ease-bootstrap4
rm -rf debian/php-vitexsoftware-ease-bootstrap4-doc
rm -rf debian/*.log debian/tmp
rm -rf .phpdoc/*
apigen:
VERSION=`cat debian/composer.json | grep version | awk -F'"' '{print $4}'`; \
apigen generate --source src --destination docs --title "Ease PHP Framework bootstrap4 ${VERSION}" --charset UTF-8 --access-levels public --access-levels protected --php --tree
composer:
composer update
phpunit:
vendor/bin/phpunit --bootstrap tests/Bootstrap.php --configuration phpunit.xml
deb:
dch -i "`git log -1 --pretty=%B`"
debuild -i -us -uc -b
rpm:
rpmdev-bumpspec --comment="`git log -1 --pretty=%B`" --userstring="Vítězslav Dvořák <info@vitexsoftware.cz>" ease-bootstrap.spec
rpmbuild -ba ease-bootstrap.spec
release:
echo Release v$(nextversion)
dch -v $(nextversion) `git log -1 --pretty=%B | head -n 1`
debuild -i -us -uc -b
git commit -a -m "Release v$(nextversion)"
git tag -a $(nextversion) -m "version $(nextversion)"
openbuild:
.PHONY : install build