mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-03-10 18:16:49 +01:00
* fix "single_trait_insert_per_statement" * fix "empty_loop_condition" * fix "backtick_to_shell_exec" * fix "phpdoc_to_comment" * fix "no_empty_statement" * fix "heredoc_to_nowdoc" * fix "class_reference_name_casing" * fix "align_multiline_comment" * fix "heredoc_indentation" * fix "constant_case" * fix "single_line_comment_style" * fix "no_null_property_initialization" * fix "standardize_increment" * fix "no_unneeded_control_parentheses" * fix missing NL after "<?php" * fix php in *.sh files too * fix trailing spaces from all text files * fix "explicit_indirect_variable" * Revert "fix "align_multiline_comment"" This reverts commit42e584f8e3. * fix "align_multiline_comment" properly * Revert "fix trailing spaces from all text files" - diff files only * Revert "Revert "fix trailing spaces from all text files" - diff files only" This reverts commit2101c2a3a3. * rm useless "setup-php" config
90 lines
4.4 KiB
Makefile
90 lines
4.4 KiB
Makefile
#
|
|
# This file is used by developers to build release packages
|
|
#
|
|
|
|
GITREMOTE=https://github.com/roundcube/roundcubemail.git
|
|
GITBRANCH=master
|
|
GPGKEY=devs@roundcube.net
|
|
VERSION=1.7-git
|
|
SEDI=sed -i
|
|
PHP_VERSION=7.3
|
|
|
|
UNAME_S := $(shell uname -s)
|
|
ifeq ($(UNAME_S),Darwin)
|
|
SEDI=sed -i ''
|
|
endif
|
|
|
|
all: clean complete dependent framework
|
|
|
|
complete: roundcubemail-git
|
|
cp -RH roundcubemail-git roundcubemail-$(VERSION)
|
|
(cd roundcubemail-$(VERSION); cp composer.json-dist composer.json)
|
|
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config platform.php $(PHP_VERSION))
|
|
(cd roundcubemail-$(VERSION); php /tmp/composer.phar require "kolab/net_ldap3:~1.1.4" --no-update --no-install)
|
|
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config --unset suggest.kolab/net_ldap3)
|
|
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config --unset require-dev)
|
|
(cd roundcubemail-$(VERSION); php /tmp/composer.phar update --prefer-dist --no-dev --no-interaction)
|
|
(cd roundcubemail-$(VERSION); php /tmp/composer.phar config --unset platform)
|
|
(cd roundcubemail-$(VERSION); bin/install-jsdeps.sh --force)
|
|
(cd roundcubemail-$(VERSION); bin/jsshrink.sh program/js/publickey.js; bin/jsshrink.sh plugins/managesieve/codemirror/lib/codemirror.js)
|
|
(cd roundcubemail-$(VERSION); rm -f jsdeps.json bin/install-jsdeps.sh *.orig; rm -rf temp/js_cache)
|
|
(cd roundcubemail-$(VERSION); rm -rf vendor/pear/*/tests vendor/*/*/.git* vendor/*/*/.travis* vendor/*/*/phpunit.xml.dist vendor/pear/console_commandline/docs vendor/pear/net_ldap2/doc vendor/bacon/bacon-qr-code/test vendor/dasprid/enum/test)
|
|
(cd roundcubemail-$(VERSION); echo "// generated by Roundcube install $(VERSION)" >> vendor/autoload.php)
|
|
tar czf roundcubemail-$(VERSION)-complete.tar.gz roundcubemail-$(VERSION)
|
|
rm -rf roundcubemail-$(VERSION)
|
|
|
|
dependent: roundcubemail-git
|
|
cp -RH roundcubemail-git roundcubemail-$(VERSION)
|
|
tar czf roundcubemail-$(VERSION).tar.gz roundcubemail-$(VERSION)
|
|
rm -rf roundcubemail-$(VERSION)
|
|
|
|
framework: roundcubemail-git /tmp/phpDocumentor.phar
|
|
cp -r roundcubemail-git/program/lib/Roundcube roundcube-framework-$(VERSION)
|
|
(cd roundcube-framework-$(VERSION); php /tmp/phpDocumentor.phar -d . -t ./doc --title="Roundcube Framework" --defaultpackagename="Framework" --template="clean")
|
|
(cd roundcube-framework-$(VERSION); rm -rf doc/phpdoc-cache* .phpdoc)
|
|
tar czf roundcube-framework-$(VERSION).tar.gz roundcube-framework-$(VERSION)
|
|
rm -rf roundcube-framework-$(VERSION)
|
|
|
|
sign:
|
|
gpg -u $(GPGKEY) -a --detach-sig roundcubemail-$(VERSION).tar.gz
|
|
gpg -u $(GPGKEY) -a --detach-sig roundcubemail-$(VERSION)-complete.tar.gz
|
|
gpg -u $(GPGKEY) -a --detach-sig roundcube-framework-$(VERSION).tar.gz
|
|
|
|
verify:
|
|
gpg -v --verify roundcubemail-$(VERSION).tar.gz.asc roundcubemail-$(VERSION).tar.gz
|
|
gpg -v --verify roundcubemail-$(VERSION)-complete.tar.gz.asc roundcubemail-$(VERSION)-complete.tar.gz
|
|
gpg -v --verify roundcube-framework-$(VERSION).tar.gz.asc roundcube-framework-$(VERSION).tar.gz
|
|
|
|
shasum:
|
|
shasum -a 256 roundcubemail-$(VERSION).tar.gz roundcubemail-$(VERSION)-complete.tar.gz roundcube-framework-$(VERSION).tar.gz
|
|
|
|
roundcubemail-git: buildtools
|
|
git clone --branch=$(GITBRANCH) --depth=1 $(GITREMOTE) roundcubemail-git
|
|
(cd roundcubemail-git; bin/jsshrink.sh; bin/updatecss.sh; bin/cssshrink.sh)
|
|
(cd roundcubemail-git/skins/elastic; \
|
|
lessc --clean-css="--s1 --advanced" styles/styles.less > styles/styles.min.css; \
|
|
lessc --clean-css="--s1 --advanced" styles/print.less > styles/print.min.css; \
|
|
lessc --clean-css="--s1 --advanced" styles/embed.less > styles/embed.min.css)
|
|
(cd roundcubemail-git/bin; rm -f transifexpull.sh package2composer.sh)
|
|
(cd roundcubemail-git; find . -name '.gitignore' | xargs rm -f)
|
|
(cd roundcubemail-git; find . -name '.travis.yml' | xargs rm -f)
|
|
(cd roundcubemail-git; rm -rf tests plugins/*/tests .git* .tx* .ci* .editorconfig* index-test.php Dockerfile Makefile)
|
|
(cd roundcubemail-git; $(SEDI) 's/1.7-git/$(VERSION)/' index.php public_html/index.php installer/index.php program/include/iniset.php program/lib/Roundcube/bootstrap.php)
|
|
(cd roundcubemail-git; $(SEDI) 's/# Unreleased/# Release $(VERSION)'/ CHANGELOG.md)
|
|
|
|
buildtools: /tmp/composer.phar
|
|
npm install uglify-js
|
|
npm install lessc
|
|
npm install less-plugin-clean-css
|
|
npm install csso-cli
|
|
|
|
/tmp/composer.phar:
|
|
curl -sS https://getcomposer.org/installer | php -- --install-dir=/tmp/
|
|
|
|
/tmp/phpDocumentor.phar:
|
|
curl -sSL https://phpdoc.org/phpDocumentor.phar -o /tmp/phpDocumentor.phar
|
|
|
|
clean:
|
|
rm -rf roundcubemail-git
|
|
rm -rf roundcubemail-$(VERSION)*
|