-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate_project.sh
More file actions
executable file
·46 lines (32 loc) · 1.98 KB
/
update_project.sh
File metadata and controls
executable file
·46 lines (32 loc) · 1.98 KB
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
#!/bin/bash
template_project_name=example
custom_project_name=dancee
address=https://raw.githubusercontent.com/mjablecnik/vader_framework/refs/heads/master
if ! type github-dlr >/dev/null 2>&1; then
echo "Command 'github-dlr' is not installed."
echo "Please, installed this command by run:"
echo " pipx install github-dlr"
echo "or"
echo " pip install github-dlr"
exit 1
fi
curl $address/${template_project_name}_project/rename_project.sh > rename_project.sh
#curl $address/${template_project_name}_project/update_project.sh > update_project.sh
cd ${custom_project_name}_design
rm -rf bricks
rm -rf mason.yaml
rm -rf mason-lock.json
github-dlr https://github.com/mjablecnik/vader_framework/tree/master/${template_project_name}_project/${template_project_name}_design/bricks
curl $address/${template_project_name}_project/${template_project_name}_design/mason.yaml > mason.yaml
curl $address/${template_project_name}_project/${template_project_name}_design/mason-lock.json > mason-lock.json
curl $address/${template_project_name}_project/${template_project_name}_design/commands.yaml > commands.yaml
github-dlr https://github.com/mjablecnik/vader_framework/tree/master/${template_project_name}_project/${template_project_name}_design/vader
github-dlr https://github.com/mjablecnik/vader_framework/tree/master/${template_project_name}_project/${template_project_name}_design/bin
cd ../${custom_project_name}_app
curl $address/${template_project_name}_project/${template_project_name}_app/commands.yaml > commands.yaml
github-dlr https://github.com/mjablecnik/vader_framework/tree/master/${template_project_name}_project/${template_project_name}_app/vader
# github-dlr https://github.com/mjablecnik/vader_framework/tree/master/${template_project_name}_project/${template_project_name}_app/bin
cd ..
replace ${template_project_name}_app ${custom_project_name}_app
replace ${template_project_name}_design ${custom_project_name}_design
# ./rename_project.sh ${template_project_name} ${custom_project_name}