Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
pdn-certic
MaX
Commits
4a35c0aa
Commit
4a35c0aa
authored
Sep 09, 2020
by
Jerome Chauveau
Browse files
liens plugins en relatif. Fixes
#83
parent
bc3b7813
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/max.sh
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
''
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment