-
Notifications
You must be signed in to change notification settings - Fork 8
/
installer.sh
46 lines (29 loc) · 1.11 KB
/
installer.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
while getopts ":p:u:" opt; do
case $opt in
p) PROJECT_NAME="$OPTARG"
;;
u) USERNAME="$OPTARG"
;;
\?) echo "Opción inválida -$OPTARG" >&2
;;
esac
done
git init ${PROJECT_NAME}
cd ${PROJECT_NAME}
git remote add "template" https://github.com/nanounanue/pipeline-template.git
git pull template master
echo ${PROJECT_NAME} > .project-name
hub create ${USERNAME}/${PROJECT_NAME}
git add .project-name
git commit -m "Ajustando el nombre del proyecto a ${PROJECT_NAME}"
git push origin master
git flow init -d
git checkout develop
make help
echo "############################################################################################"
echo "## ##"
echo "## No olvides ejecutar 'make set_project_name' para ajustar el nombre de las carpetas ##"
echo "## ##"
echo "############################################################################################"
echo ""
make info