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
78768a91
Commit
78768a91
authored
Sep 25, 2018
by
Armand Bahi
Browse files
Options
Downloads
Patches
Plain Diff
Add update script
parent
cfd4fb05
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
init_vmap.sh
+0
-5
0 additions, 5 deletions
init_vmap.sh
update_vmap.sh
+66
-0
66 additions, 0 deletions
update_vmap.sh
with
66 additions
and
5 deletions
init_vmap.sh
+
0
−
5
View file @
78768a91
...
@@ -15,9 +15,6 @@
...
@@ -15,9 +15,6 @@
APP_NAME
=
"vmap"
APP_NAME
=
"vmap"
APP_MODULES
=(
vmap vm4ms anc cadastre cadastreV2
)
APP_MODULES
=(
vmap vm4ms anc cadastre cadastreV2
)
# git rm -Rf $APP_NAME
# git rm -Rf repos
rm
-Rf
repos
rm
-Rf
repos
# Vitis
# Vitis
...
@@ -67,5 +64,3 @@ for module in "${APP_MODULES[@]}"; do
...
@@ -67,5 +64,3 @@ for module in "${APP_MODULES[@]}"; do
fi
fi
fi
fi
done
done
# rm -Rf repos
This diff is collapsed.
Click to expand it.
update_vmap.sh
0 → 100644
+
66
−
0
View file @
78768a91
#!/bin/bash
#
#
# Script de mise à jour du dépot front vMap versionné sous git
#
# Split repo
# git subtree split -P module/ -b module_split_branch
#
# Add subtree
# git subtree add --prefix vmap "git@vm09.veremes.net:Development/vitis_apps/sources/Vitis.git" master
#
#
APP_NAME
=
"vmap"
APP_MODULES
=(
vmap vm4ms anc cadastre cadastreV2
)
rm
-Rf
repos
# Vitis
echo
"---- INIT Vitis ----"
git subtree pull
--prefix
${
APP_NAME
}
"git@vm09.veremes.net:Development/vitis_apps/sources/Vitis.git"
master
# Conf
echo
"---- INIT
$APP_NAME
conf ----"
git subtree pull
--prefix
${
APP_NAME
}
/client/conf
"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 clone
"git@vm09.veremes.net:Development/vitis_apps/sources/module_
${
module
}
.git"
repos/module_
${
module
}
if
[
-d
"
$(
pwd
)
/repos/module_
${
module
}
/"
]
;
then
# Crée les branches contenant uniquement les dossiers cibles
cd
repos/module_
${
module
}
/
if
[
-d
"
$(
pwd
)
/module/"
]
;
then
git subtree
split
-P
module/
-b
module_split
fi
if
[
-d
"
$(
pwd
)
/web_service/conf/"
]
;
then
git subtree
split
-P
web_service/conf/
-b
web_service_conf_split
fi
if
[
-d
"
$(
pwd
)
/web_service/sql/"
]
;
then
git subtree
split
-P
web_service/sql/
-b
web_service_sql_split
fi
if
[
-d
"
$(
pwd
)
/web_service/ws/"
]
;
then
git subtree
split
-P
web_service/ws/
-b
web_service_ws_split
fi
cd
../../
# Ajoute les subtrees
if
[
-d
"
$(
pwd
)
/repos/module_
${
module
}
/module/"
]
;
then
git subtree pull
--prefix
${
APP_NAME
}
/client/modules/
${
module
}
repos/module_
${
module
}
/.git module_split
fi
if
[
-d
"
$(
pwd
)
/repos/module_
${
module
}
/web_service/conf/"
]
;
then
git subtree pull
--prefix
${
APP_NAME
}
/vas/rest/conf/
${
module
}
repos/module_
${
module
}
/.git web_service_conf_split
fi
if
[
-d
"
$(
pwd
)
/repos/module_
${
module
}
/web_service/ws/"
]
;
then
git subtree pull
--prefix
${
APP_NAME
}
/vas/rest/ws/
${
module
}
repos/module_
${
module
}
/.git web_service_ws_split
fi
if
[
-d
"
$(
pwd
)
/repos/module_
${
module
}
/web_service/sql/"
]
;
then
git subtree pull
--prefix
${
APP_NAME
}
/vas/sql/
${
module
}
repos/module_
${
module
}
/.git web_service_sql_split
fi
fi
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