summaryrefslogtreecommitdiff
path: root/contrib/copy-backoffice-into-prebuilt.sh
blob: aecebf01bb00786d0667cb07ae6d995f27408130 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

[ ! -d prebuilt ] && echo 'directory "prebuilt" not found. first checkout the prebuilt branch into a prebuilt directory' && exit 1

find packages/merchant-backoffice-ui/dist/prod/ -type f -printf '%P\n' | sort > prebuilt/backoffice/bof

while IFS= read -r file; do
  cp packages/merchant-backoffice-ui/dist/prod/$file prebuilt/backoffice/$file
done < prebuilt/backoffice/bof