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
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Open source
vMap
Commits
92f4957e
Commit
92f4957e
authored
6 years ago
by
Armand Bahi
Browse files
Options
Downloads
Patches
Plain Diff
Update utils/init_symlinks.sh
parent
6c3d32ea
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/init_symlinks.sh
+54
-6
54 additions, 6 deletions
utils/init_symlinks.sh
with
54 additions
and
6 deletions
utils/init_symlinks.sh
+
54
−
6
View file @
92f4957e
...
...
@@ -11,8 +11,8 @@
#
#
APP_NAME
=
"vmap"
echo
-n
"Existing app path (path/empty)? "
read
APP_EXISTING_PATH
# Récupère la liste des dépendances
.
./get_deps.sh
...
...
@@ -21,37 +21,64 @@ cd ..
# Vitis
echo
"---- Link vitis ----"
if
[
"
$(
pwd
)
/client"
]
;
then
rm
client
fi
ln
-rsf
src/vitis/client client
if
[
"
$(
pwd
)
/vas"
]
;
then
rm
vas
fi
ln
-rsf
src/vitis/vas vas
# Conf
echo
"---- Link
${
APP_NAME
}
/conf ----"
echo
"---- Link conf ----"
if
[
-f
"src/vitis/client/conf"
]
;
then
rm
src/vitis/client/conf
fi
ln
-rsf
conf src/vitis/client/conf
if
[
-f
"conf/closure"
]
;
then
rm
conf/closure
fi
ln
-rsf
src/closure/conf conf/closure
# Modules
if
[[
$depsCount
>
0
]]
;
then
for
((
i
=
1
;
i <
=
$depsCount
;
i++
))
;
do
if
[
${
aDeps
[
$i
, nature]
}
==
"modules"
]
;
then
if
[
${
aDeps
[
$i
, na
tur
e]
:0:7
}
==
"module_"
]
;
then
$
module
=
${
aDeps
[
$i
, name]
:7
}
if
[
${
aDeps
[
$i
, na
m
e]
:0:7
}
==
"module_"
]
;
then
module
=
${
aDeps
[
$i
, name]
:7
}
echo
"---- Link module_
${
module
}
----"
if
[
-d
"
$(
pwd
)
/src/module_
${
module
}
/module"
]
;
then
if
[
-f
"src/vitis/client/modules/
${
module
}
"
]
;
then
rm
src/vitis/client/modules/
${
module
}
fi
ln
-rsf
src/module_
${
module
}
/module src/vitis/client/modules/
${
module
}
fi
if
[
-d
"
$(
pwd
)
/src/module_
${
module
}
/web_service/ws"
]
;
then
if
[
-f
"src/vitis/vas/rest/ws/
${
module
}
"
]
;
then
rm
src/vitis/vas/rest/ws/
${
module
}
fi
ln
-rsf
src/module_
${
module
}
/web_service/ws src/vitis/vas/rest/ws/
${
module
}
fi
if
[
-d
"
$(
pwd
)
/src/module_
${
module
}
/web_service/conf"
]
;
then
if
[
-f
"src/vitis/vas/rest/conf/
${
module
}
"
]
;
then
rm
src/vitis/vas/rest/conf/
${
module
}
fi
ln
-rsf
src/module_
${
module
}
/web_service/conf src/vitis/vas/rest/conf/
${
module
}
fi
if
[
-d
"
$(
pwd
)
/src/module_
${
module
}
/web_service/sql"
]
;
then
ln
-rsf
src/module_
${
module
}
/web_service/conf src/vitis/vas/sql/
${
module
}
if
[
-f
"src/vitis/vas/sql/
${
module
}
"
]
;
then
rm
src/vitis/vas/sql/
${
module
}
fi
ln
-rsf
src/module_
${
module
}
/web_service/sql src/vitis/vas/sql/
${
module
}
fi
if
[
-d
"
$(
pwd
)
/src/module_
${
module
}
/web_service/class"
]
;
then
for
class_dir
in
$(
ls
"
$(
pwd
)
/src/module_
${
module
}
/web_service/class"
)
;
do
if
[
-d
"
$(
pwd
)
/src/module_
${
module
}
/web_service/class/
${
class_dir
}
"
]
;
then
echo
"---- Link module_
${
module
}
/
${
class_dir
}
----"
if
[
-f
"src/vitis/vas/rest/class/
${
class_dir
}
"
]
;
then
rm
src/vitis/vas/rest/class/
${
class_dir
}
fi
ln
-rsf
src/module_
${
module
}
/web_service/class/
${
class_dir
}
src/vitis/vas/rest/class/
${
class_dir
}
fi
done
...
...
@@ -59,4 +86,25 @@ if [[ $depsCount > 0 ]]; then
fi
fi
done
# Utilisation d'une install déjà existante
if
[
-d
"
${
APP_EXISTING_PATH
}
"
]
;
then
echo
"---- Link exixting app
${
APP_EXISTING_PATH
}
----"
existing_folders_path[0]
=
"vas/server"
existing_folders_path[1]
=
"vas/log"
existing_folders_path[2]
=
"vas/public"
existing_folders_path[3]
=
"vas/shared"
existing_folders_path[4]
=
"vas/tmp"
existing_folders_path[5]
=
"vas/upload"
existing_folders_path[6]
=
"vas/ws_data"
existing_folders_path[8]
=
"vas/rest/conf"
file_existing_path[0]
=
"client/conf/properties.json"
file_existing_path[1]
=
"vas/rest/.htaccess"
# for i in "${arrayName[@]}" do
#
# done
fi
fi
This diff is collapsed.
Click to expand it.
Armand Bahi
@ArmandBahi
mentioned in commit
81d25f33
·
6 years ago
mentioned in commit
81d25f33
mentioned in commit 81d25f33cad340bc8fd98d2773a654acfd481bb1
Toggle commit list
Armand Bahi
@ArmandBahi
mentioned in commit
fd799438
·
6 years ago
mentioned in commit
fd799438
mentioned in commit fd79943801b0969e7496b7fd5884e036bb1c050d
Toggle commit list
Armand Bahi
@ArmandBahi
mentioned in commit
fd799438
·
6 years ago
mentioned in commit
fd799438
mentioned in commit fd79943801b0969e7496b7fd5884e036bb1c050d
Toggle commit list
Armand Bahi
@ArmandBahi
mentioned in commit
fd799438
·
6 years ago
mentioned in commit
fd799438
mentioned in commit fd79943801b0969e7496b7fd5884e036bb1c050d
Toggle commit list
Armand Bahi
@ArmandBahi
mentioned in commit
e2b03a05
·
6 years ago
mentioned in commit
e2b03a05
mentioned in commit e2b03a05d68ea4c01665f44b113151da91c86e0d
Toggle commit list
Armand Bahi
@ArmandBahi
mentioned in commit
e2b03a05
·
6 years ago
mentioned in commit
e2b03a05
mentioned in commit e2b03a05d68ea4c01665f44b113151da91c86e0d
Toggle commit list
Armand Bahi
@ArmandBahi
mentioned in commit
e2b03a05
·
6 years ago
mentioned in commit
e2b03a05
mentioned in commit e2b03a05d68ea4c01665f44b113151da91c86e0d
Toggle commit list
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