Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
SENG Henri
MaX
Commits
4a35c0aa
Commit
4a35c0aa
authored
4 years ago
by
Jerome Chauveau
Browse files
Options
Downloads
Patches
Plain Diff
liens plugins en relatif. Fixes #83
parent
bc3b7813
Branches
master
Branches containing commit
Tags
MaX-V0.9.5
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/max.sh
+8
-5
8 additions, 5 deletions
tools/max.sh
with
8 additions
and
5 deletions
tools/max.sh
+
8
−
5
View file @
4a35c0aa
...
...
@@ -6,6 +6,8 @@ AVAILABLE_PLUGINS_DIR=$DIRECTORY/../plugins-available
ENABLED_PLUGINS_DIR
=
$DIRECTORY
/../plugins-enabled
MAX_PLUGINS_DIR
=
$AVAILABLE_PLUGINS_DIR
/default
CUSTOM_PLUGINS_DIR
=
$AVAILABLE_PLUGINS_DIR
/custom
RELATIVE_MAX_PLUGINS_DIR
=
../plugins-available/default
RELATIVE_CUSTOM_PLUGINS_DIR
=
../plugins-available/custom
BASEX_CLIENT_BIN
=
"basexclient"
BASEX_BIN
=
"basex"
...
...
@@ -74,19 +76,20 @@ enable_plugin(){
if
[
-d
$MAX_PLUGINS_DIR
/
$1
]
then
target
=
$MAX_PLUGINS_DIR
/
$1
target
=
$
RELATIVE_
MAX_PLUGINS_DIR
/
$1
else
if
[
-d
$CUSTOM_PLUGINS_DIR
/
$1
]
if
[
-d
$
RELATIVE_
CUSTOM_PLUGINS_DIR
/
$1
]
then
target
=
$CUSTOM_PLUGINS_DIR
/
$1
target
=
$
RELATIVE_
CUSTOM_PLUGINS_DIR
/
$1
else
echo
"Oups ! Plugin
$1
does not exist."
return
fi
fi
ln
-s
$target
$ENABLED_PLUGINS_DIR
/
$1
cd
$ENABLED_PLUGINS_DIR
ln
-s
$target
$1
cd
$DIRECTORY
node
$DIRECTORY
/edition_manager.js
-plugin
$1
echo
-e
"Plugin
$1
successfully enabled."
echo
-e
''
...
...
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