Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
V
vMap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marty Fabien
vMap
Commits
fc4b53bd
Commit
fc4b53bd
authored
6 years ago
by
Armand Bahi
Browse files
Options
Downloads
Patches
Plain Diff
Add script to pull and push subtrees
parent
8ba52179
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
utils/pull_vmap_subtrees.sh
+30
-0
30 additions, 0 deletions
utils/pull_vmap_subtrees.sh
utils/push_vmap_subtrees.sh
+30
-0
30 additions, 0 deletions
utils/push_vmap_subtrees.sh
with
60 additions
and
0 deletions
utils/pull_vmap_subtrees.sh
0 → 100644
+
30
−
0
View file @
fc4b53bd
#!/bin/bash
#
#
# Script d'initialisation d'un dépot vMap versionné sous git
# Initislise l'ensemble des dépendances sous forme de subtrees
#
#
#
APP_NAME
=
"vmap"
APP_MODULES
=(
vmap vm4ms anc cadastre cadastreV2
)
cd
..
# Vitis
echo
"---- INIT Vitis ----"
git subtree pull
--prefix
src/vitis
"git@vm09.veremes.net:Development/vitis_apps/sources/vitis.git"
master
# Conf
echo
"---- INIT
$APP_NAME
conf ----"
git subtree pull
--prefix
src/app_
${
APP_NAME
}
"git@vm09.veremes.net:Development/vitis_apps/sources/app_
${
APP_NAME
}
.git"
master
# Modules
for
module
in
"
${
APP_MODULES
[@]
}
"
;
do
echo
"---- INIT
${
module
}
----"
# Ajoute le dépôt
git subtree pull
--prefix
src/module_
${
module
}
"git@vm09.veremes.net:Development/vitis_apps/sources/module_
${
module
}
.git"
master
done
This diff is collapsed.
Click to expand it.
utils/push_vmap_subtrees.sh
0 → 100755
+
30
−
0
View file @
fc4b53bd
#!/bin/bash
#
#
# Script d'initialisation d'un dépot vMap versionné sous git
# Initislise l'ensemble des dépendances sous forme de subtrees
#
#
#
APP_NAME
=
"vmap"
APP_MODULES
=(
vmap vm4ms anc cadastre cadastreV2
)
cd
..
# Vitis
echo
"---- INIT Vitis ----"
git subtree push
--prefix
src/vitis
"git@vm09.veremes.net:Development/vitis_apps/sources/vitis.git"
master
# Conf
echo
"---- INIT
$APP_NAME
conf ----"
git subtree push
--prefix
src/app_
${
APP_NAME
}
"git@vm09.veremes.net:Development/vitis_apps/sources/app_
${
APP_NAME
}
.git"
master
# Modules
for
module
in
"
${
APP_MODULES
[@]
}
"
;
do
echo
"---- INIT
${
module
}
----"
# Ajoute le dépôt
git subtree push
--prefix
src/module_
${
module
}
"git@vm09.veremes.net:Development/vitis_apps/sources/module_
${
module
}
.git"
master
done
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