Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vMap 2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open source
vMap 2
Commits
66623b23
Commit
66623b23
authored
4 years ago
by
ludivine premont
Browse files
Options
Downloads
Patches
Plain Diff
initialisation bin
parent
f1211df8
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
bin/clone_deps.sh
+36
-0
36 additions, 0 deletions
bin/clone_deps.sh
bin/mount_project.sh
+64
-0
64 additions, 0 deletions
bin/mount_project.sh
bin/unmount_project.sh
+81
-0
81 additions, 0 deletions
bin/unmount_project.sh
with
181 additions
and
0 deletions
bin/clone_deps.sh
0 → 100755
+
36
−
0
View file @
66623b23
#!/bin/bash
#
#
# Script à lancer pour l'installation d'une application Vitis
#
# Paramètres obligatoires :
# --app_path : chemin vers le répertoire d'installation d'application
#
#
for
i
in
"
$@
"
do
case
$i
in
# param app_path
--app_path
=
*
)
app_path
=
"
${
i
#*=
}
"
shift
;;
esac
done
if
[
-z
${
app_path
+x
}
]
then
echo
"--app_path required"
exit
1
fi
cd
$app_path
echo
"---- Clone Repos ----"
if
[
-d
src
]
;
then
mkdir
-p
src
fi
git clone git@gitlab.veremes.net:Development/vitis-2020/sources/vitis.git src/vitis
git clone git@gitlab.veremes.net:Development/vitis-2020/sources/module-vmap.git src/module_vmap
\ No newline at end of file
This diff is collapsed.
Click to expand it.
bin/mount_project.sh
0 → 100755
+
64
−
0
View file @
66623b23
#!/bin/bash
#
#
# Script à lancer pour l'installation d'une application Vitis
#
# Paramètres obligatoires :
# --app_path : chemin vers le répertoire d'installation d'application
#
#
for
i
in
"
$@
"
do
case
$i
in
# param app_path
--app_path
=
*
)
app_path
=
"
${
i
#*=
}
"
shift
;;
esac
done
if
[
-z
${
app_path
+x
}
]
then
echo
"--app_path required"
exit
1
fi
cd
$app_path
echo
"---- Generate Client ----"
mkdir
-p
client
empty
=
`
ls
-a
client |
sed
-e
"/
\.
$/
d"
|
wc
-l
`
if
[
$empty
-eq
0
]
then
echo
"---- Mount module's assets folder ----"
sudo
mount
--bind
src/vitis/client client
mkdir
-p
client/src/modules/vmap
sudo
mount
--bind
src/module_vmap/module client/src/modules/vmap
mkdir
-p
client/src/conf
sudo
mount
--bind
conf client/src/conf
# Motage des modules Angular
if
[
-f
conf/modules-components.ts
]
;
then
cp
-f
conf/modules-components.ts src/vitis/client/src/app/modules/modules-components.ts
else
cp
-f
src/vitis/client/src/app/modules/modules-components.sample.ts src/vitis/client/src/app/modules/modules-components.ts
fi
if
[
-d
src/module_vmap/module/components
]
;
then
mkdir
src/vitis/client/src/app/modules/vmap
sudo
mount
--bind
src/module_vmap/module/components client/src/app/modules/vmap
fi
fi
echo
"---- Generate VAS ----"
mkdir
-p
vas
empty
=
`
ls
-a
vas |
sed
-e
"/
\.
$/
d"
|
wc
-l
`
if
[
$empty
-eq
0
]
then
echo
"---- Mount module's WebServices folder ----"
sudo
mount
--bind
src/vitis/vas vas
mkdir
-p
vas/src/Module/Vmap
sudo
mount
--bind
src/module_vmap/web_services vas/src/Module/Vmap
fi
This diff is collapsed.
Click to expand it.
bin/unmount_project.sh
0 → 100755
+
81
−
0
View file @
66623b23
#!/bin/bash
#
#
# Script à lancer pour l'installation d'une application Vitis
#
# Paramètres obligatoires :
# --app_path : chemin vers le répertoire d'installation d'application
#
#
for
i
in
"
$@
"
do
case
$i
in
# param app_path
--app_path
=
*
)
app_path
=
"
${
i
#*=
}
"
shift
;;
esac
done
if
[
-z
${
app_path
+x
}
]
then
echo
"--app_path required"
exit
1
fi
cd
$app_path
# Démonte un dossier
unmount_folder
()
{
if
[
-d
"
$1
"
]
;
then
if
mount |
grep
"
$app_path
/
$1
"
>
/dev/null
;
then
echo
"Unmount
$1
"
sudo
umount
"
$app_path
/
$1
"
fi
fi
}
# Démote les points de montages contenus dans un dossier
unmount_containing_folders
()
{
if
[
-d
"
$1
"
]
;
then
for
f
in
"
$1
"
/
*
;
do
if
[
-d
"
$f
"
]
;
then
unmount_folder
"
$f
"
fi
done
fi
}
echo
"--------------------------------"
echo
"---- Unmount client folders ----"
echo
"--------------------------------"
# Démote src/vitis/client/src/modules/*
unmount_containing_folders
"src/vitis/client/src/modules"
# Démote src/vitis/client/src/app/modules/*
unmount_containing_folders
"src/vitis/client/src/app/modules"
# Démonte src/vitis/client/src/conf
unmount_folder
"src/vitis/client/src/conf"
# Démonte client
unmount_folder
"client"
# Supprime modules-components.ts
sudo rm
src/vitis/client/src/app/modules/modules-components.ts
echo
"-----------------------------"
echo
"---- Unmount vas folders ----"
echo
"-----------------------------"
# Démote src/vitis/vas/engine/*
unmount_containing_folders
"src/vitis/vas/engine"
# Démote src/vitis/vas/src/Module/*
unmount_containing_folders
"src/vitis/vas/src/Module"
# Démonte vas
unmount_folder
"vas"
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment