-
Notifications
You must be signed in to change notification settings - Fork 1
/
build-shopware5-client.sh
executable file
·66 lines (57 loc) · 3.34 KB
/
build-shopware5-client.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,')
rm -rf EnderecoAMS
rsync -avr --exclude='vendor/' --exclude='node_modules/' --exclude='.git/' --exclude='shops/' ./* ./EnderecoAMS/
rm -rf EnderecoAMS/Mocks
rm -f EnderecoAMS/.gitignore
rm -f EnderecoAMS/.dockerignore
rm -f EnderecoAMS/endereco.js
rm -f EnderecoAMS/endereco.scss
rm -f EnderecoAMS/package.json
rm -f EnderecoAMS/package-lock.json
rm -f EnderecoAMS/composer.json
rm -f EnderecoAMS/composer-lock.json
rm -f EnderecoAMS/webpack.config.js
rm -f EnderecoAMS/docker-compose.yml
rm -f EnderecoAMS/build-shopware5-client.sh
rm -f EnderecoAMS/*.neon
rm -f EnderecoAMS/*.sh
find ./EnderecoAMS -type f -exec sed -i 's/EnderecoShopware5Client/EnderecoAMS/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/endereco_shopware5_client/endereco_ams/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/ (Download)//g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/AGPLv3/proprietary/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/enderecoamsts/enderecoswamsts/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/enderecoamsstatus/enderecoswamsstatus/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/enderecoamsapredictions/enderecoswamsapredictions/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/enderecostreetname/enderecoswstreetname/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/enderecobuildingnumber/enderecoswbuildingnumber/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/setEnderecoamsts/setEnderecoswamsts/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/setEnderecoamsstatus/setEnderecoswamsstatus/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/setEnderecoamsapredictions/setEnderecoswamsapredictions/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/setEnderecostreetname/setEnderecoswstreetname/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/setEnderecobuildingnumber/setEnderecoswbuildingnumber/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/endereco_order_billingamsts/endereco_order_swbillingamsts/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/endereco_order_shippingamsts/endereco_order_swshippingamsts/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/endereco_order_billingamsstatus/endereco_order_swbillingamsstatus/g' {} \;
find ./EnderecoAMS -type f -exec sed -i 's/endereco_order_shippingamsstatus/endereco_order_swshippingamsstatus/g' {} \;
find ./EnderecoAMS -type f -exec rename 's/EnderecoShopware5Client/EnderecoAMS/g' {} \;
zip -r ../EnderecoAMS-$branch.zip EnderecoAMS
rm -rf EnderecoAMS
rm -rf EnderecoShopware5Client
rsync -avr --exclude='vendor/' --exclude='node_modules/' --exclude='.git/' --exclude='shops/' ./* ./EnderecoShopware5Client/
rm -rf EnderecoShopware5Client/Mocks
rm -f EnderecoShopware5Client/.gitignore
rm -f EnderecoShopware5Client/.dockerignore
rm -f EnderecoShopware5Client/endereco.js
rm -f EnderecoShopware5Client/endereco.scss
rm -f EnderecoShopware5Client/package.json
rm -f EnderecoShopware5Client/package-lock.json
rm -f EnderecoShopware5Client/composer.json
rm -f EnderecoShopware5Client/composer-lock.json
rm -f EnderecoShopware5Client/webpack.config.js
rm -f EnderecoShopware5Client/docker-compose.yml
rm -f EnderecoShopware5Client/build-shopware5-client.sh
rm -f EnderecoShopware5Client/*.neon
rm -f EnderecoShopware5Client/*.sh
zip -r ../EnderecoShopware5Client-$branch.zip EnderecoShopware5Client
rm -rf EnderecoShopware5Client