Loading Makefile +1 −5 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ run: stop ## lancement du serveur basex fi .PHONY: run stop: ## arrêt basex de dev stop: ## arrêt du serveur basex ./basex/bin/basexhttpstop || true .PHONY: stop Loading Loading @@ -71,10 +71,6 @@ list-plugins: ## affichage de la liste des plugins cd $(TOOLS_DIR) && ./max.sh --$(MAKECMDGOALS) .PHONY: list-plugins build: ## création d'une archive prête à deployer tar -czvf build.tar.gz * .PHONY: build help: ## afficher l'aide @echo "\nChoisissez une commande. Les choix sont:\n" @grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-12s\033[m %s\n", $$1, $$2}' Loading tools/build.sh +23 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,29 @@ cp ../basex/lib/custom/FOP.jar $RELEASE_DIR/basex/lib/custom/ # generate Makefile from dev one echo 'TOOLS_DIR=max/tools/' > Makefile cat>> Makefile<< EOF build: ## création d'une archive prête à deployer : MaX + BaseX + Sources XML @if [ ! -d 'max' ]; then\ echo 'Opération impossible';\ exit 1;\ fi @if [ -d 'build' ]; then\ rm -rf build;\ fi mkdir build cp -r max basex Makefile build/ rm build/basex/.basexhome rm build/basex/.basex touch build/basex/.basexhome cd build && tar -czvf build.tar.gz * mv build/build.tar.gz . rm -rf build @echo 'Build ok' .PHONY: build EOF awk 'f;/#### end of dev targets/{f=1}' $DIRECTORY/../Makefile >> Makefile mv Makefile $RELEASE_DIR Loading Loading
Makefile +1 −5 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ run: stop ## lancement du serveur basex fi .PHONY: run stop: ## arrêt basex de dev stop: ## arrêt du serveur basex ./basex/bin/basexhttpstop || true .PHONY: stop Loading Loading @@ -71,10 +71,6 @@ list-plugins: ## affichage de la liste des plugins cd $(TOOLS_DIR) && ./max.sh --$(MAKECMDGOALS) .PHONY: list-plugins build: ## création d'une archive prête à deployer tar -czvf build.tar.gz * .PHONY: build help: ## afficher l'aide @echo "\nChoisissez une commande. Les choix sont:\n" @grep -E '^[0-9a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[0;36m%-12s\033[m %s\n", $$1, $$2}' Loading
tools/build.sh +23 −0 Original line number Diff line number Diff line Loading @@ -93,6 +93,29 @@ cp ../basex/lib/custom/FOP.jar $RELEASE_DIR/basex/lib/custom/ # generate Makefile from dev one echo 'TOOLS_DIR=max/tools/' > Makefile cat>> Makefile<< EOF build: ## création d'une archive prête à deployer : MaX + BaseX + Sources XML @if [ ! -d 'max' ]; then\ echo 'Opération impossible';\ exit 1;\ fi @if [ -d 'build' ]; then\ rm -rf build;\ fi mkdir build cp -r max basex Makefile build/ rm build/basex/.basexhome rm build/basex/.basex touch build/basex/.basexhome cd build && tar -czvf build.tar.gz * mv build/build.tar.gz . rm -rf build @echo 'Build ok' .PHONY: build EOF awk 'f;/#### end of dev targets/{f=1}' $DIRECTORY/../Makefile >> Makefile mv Makefile $RELEASE_DIR Loading