[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 # This builds defuse-crypto.phar. To run this Makefile, `box` and `composer` 2 # must be installed and in your $PATH. Run it from inside the dist/ directory. 3 4 box := $(shell which box) 5 composer := $(shell which composer) 6 gitcommit := $(shell git rev-parse HEAD) 7 8 .PHONY: all 9 all: build-phar 10 11 .PHONY: sign-phar 12 sign-phar: 13 gpg -u DD2E507F7BDB1669 --armor --output defuse-crypto.phar.sig --detach-sig defuse-crypto.phar 14 15 # ensure we run in clean tree. export git tree and run there. 16 .PHONY: build-phar 17 build-phar: 18 @echo "Creating .phar from revision $(shell git rev-parse HEAD)." 19 rm -rf worktree 20 install -d worktree 21 (cd $(CURDIR)/..; git archive HEAD) | tar -x -C worktree 22 $(MAKE) -f $(CURDIR)/Makefile -C worktree defuse-crypto.phar 23 mv worktree/*.phar . 24 rm -rf worktree 25 26 .PHONY: clean 27 clean: 28 rm -vf defuse-crypto.phar defuse-crypto.phar.sig 29 30 # Inside workdir/: 31 32 defuse-crypto.phar: dist/box.json composer.lock 33 cp dist/box.json . 34 php -d phar.readonly=0 $(box) build -c box.json -v 35 36 composer.lock: 37 $(composer) config autoloader-suffix $(gitcommit) 38 $(composer) install --no-dev 39
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |