From 804ef8acb4d24d61a69f8b8add868ad642c451ff Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 29 Mar 2023 19:33:58 +0200 Subject: repo: move Makefile helper scripts to contrib --- Makefile | 6 +++--- contrib/copy-backend-into-prebuilt.sh | 8 ++++++++ contrib/copy-backoffice-into-prebuilt.sh | 6 ++++++ contrib/copy-demobank-into-prebuilt.sh | 8 ++++++++ copy-backend-into-prebuilt.sh | 8 -------- copy-backoffice-into-prebuilt.sh | 6 ------ copy-demobank-into-prebuilt.sh | 8 -------- 7 files changed, 25 insertions(+), 25 deletions(-) create mode 100755 contrib/copy-backend-into-prebuilt.sh create mode 100755 contrib/copy-backoffice-into-prebuilt.sh create mode 100755 contrib/copy-demobank-into-prebuilt.sh delete mode 100755 copy-backend-into-prebuilt.sh delete mode 100755 copy-backoffice-into-prebuilt.sh delete mode 100755 copy-demobank-into-prebuilt.sh diff --git a/Makefile b/Makefile index 66c2bf6c3..2b9455161 100644 --- a/Makefile +++ b/Makefile @@ -40,19 +40,19 @@ publish: backoffice-prebuilt: pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backoffice-ui... pnpm run --filter @gnu-taler/merchant-backoffice-ui... build - ./copy-backoffice-into-prebuilt.sh + ./contrib/copy-backoffice-into-prebuilt.sh .PHONY: backend-prebuilt backend-prebuilt: pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backend-ui... pnpm run --filter @gnu-taler/merchant-backend... build - ./copy-backend-into-prebuilt.sh + ./contrib/copy-backend-into-prebuilt.sh .PHONY: demobank-prebuilt demobank-prebuilt: pnpm install --frozen-lockfile --filter @gnu-taler/merchant-ba... pnpm run --filter @gnu-taler/demobank-ui... build - ./copy-demobank-into-prebuilt.sh + ./contrib/copy-demobank-into-prebuilt.sh # make documentation from docstrings .PHONY: typedoc diff --git a/contrib/copy-backend-into-prebuilt.sh b/contrib/copy-backend-into-prebuilt.sh new file mode 100755 index 000000000..b9fa2a68e --- /dev/null +++ b/contrib/copy-backend-into-prebuilt.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1 + +for file in depleted_tip.en.html offer_refund.en.html offer_tip.en.html request_payment.en.html show_order_details.en.html; do + cp packages/merchant-backend-ui/dist/pages/$file prebuilt/backend/ +done + diff --git a/contrib/copy-backoffice-into-prebuilt.sh b/contrib/copy-backoffice-into-prebuilt.sh new file mode 100755 index 000000000..3150f20ba --- /dev/null +++ b/contrib/copy-backoffice-into-prebuilt.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1 + +cp packages/merchant-backoffice-ui/dist/{index,material*,XRXV*}.* prebuilt/backoffice/ +cp packages/merchant-backoffice-ui/dist/*.svg prebuilt/backoffice/ diff --git a/contrib/copy-demobank-into-prebuilt.sh b/contrib/copy-demobank-into-prebuilt.sh new file mode 100755 index 000000000..3fd4ec5c5 --- /dev/null +++ b/contrib/copy-demobank-into-prebuilt.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1 + +for file in index.html index.js index.css logo-white-U55BSKA2.svg; do + cp packages/demobank-ui/dist/$file prebuilt/demobank/ +done + diff --git a/copy-backend-into-prebuilt.sh b/copy-backend-into-prebuilt.sh deleted file mode 100755 index b9fa2a68e..000000000 --- a/copy-backend-into-prebuilt.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1 - -for file in depleted_tip.en.html offer_refund.en.html offer_tip.en.html request_payment.en.html show_order_details.en.html; do - cp packages/merchant-backend-ui/dist/pages/$file prebuilt/backend/ -done - diff --git a/copy-backoffice-into-prebuilt.sh b/copy-backoffice-into-prebuilt.sh deleted file mode 100755 index 3150f20ba..000000000 --- a/copy-backoffice-into-prebuilt.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash - -[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1 - -cp packages/merchant-backoffice-ui/dist/{index,material*,XRXV*}.* prebuilt/backoffice/ -cp packages/merchant-backoffice-ui/dist/*.svg prebuilt/backoffice/ diff --git a/copy-demobank-into-prebuilt.sh b/copy-demobank-into-prebuilt.sh deleted file mode 100755 index 3fd4ec5c5..000000000 --- a/copy-demobank-into-prebuilt.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash - -[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1 - -for file in index.html index.js index.css logo-white-U55BSKA2.svg; do - cp packages/demobank-ui/dist/$file prebuilt/demobank/ -done - -- cgit v1.2.3