Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaX
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository 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
Show more breadcrumbs
pdn-certic
MaX
Commits
4a35c0aa
You need to sign in or sign up before continuing.
Commit
4a35c0aa
authored
4 years ago
by
Jerome Chauveau
Browse files
Options
Downloads
Patches
Plain Diff
liens plugins en relatif. Fixes
#83
parent
bc3b7813
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
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