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
ed74ef89
Commit
ed74ef89
authored
6 years ago
by
dje
Browse files
Options
Downloads
Patches
Plain Diff
amélioration script install démo
parent
781156f2
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/edition_manager.js
+11
-0
11 additions, 0 deletions
tools/edition_manager.js
tools/max.sh
+14
-2
14 additions, 2 deletions
tools/max.sh
with
25 additions
and
2 deletions
tools/edition_manager.js
+
11
−
0
View file @
ed74ef89
//checks dependencies availabilty
try
{
require
.
resolve
(
"
readline
"
);
require
.
resolve
(
"
xmldom
"
);
}
catch
(
e
)
{
console
.
log
(
"
Missing librairies - Please run npm install readline xmldom
"
);
process
.
exit
(
e
.
code
);
}
//imports des librairies
var
fs
=
require
(
'
fs
'
);
var
readline
=
require
(
'
readline
'
);
var
DOMParser
=
require
(
'
xmldom
'
).
DOMParser
;
var
XMLSerializer
=
require
(
'
xmldom
'
).
XMLSerializer
;
const
CONFIGURATION_FOLDER_PATH
=
"
../configuration/
"
;
const
EDITIONS_FOLDER_PATH
=
"
../editions/
"
;
const
MAIN_CONFIG_FILE_NAME
=
"
configuration.xml
"
;
...
...
This diff is collapsed.
Click to expand it.
tools/max.sh
+
14
−
2
View file @
ed74ef89
...
...
@@ -35,6 +35,12 @@ db_project_feed(){
}
demo_edition_build
(){
if
[
!
-d
../editions
]
then
echo
'Création répertoire "editions"'
mkdir
../editions
fi
if
[
-d
../editions/demo_lorem
]
;
then
echo
"Suppression de la demo existante"
rm
-rf
../editions/demo_lorem
...
...
@@ -44,7 +50,13 @@ demo_edition_build(){
cp
demo/demo_lorem_config_inc.xml ../editions/demo_lorem
echo
" -> resource files copy: DONE"
node edition_manager.js
-demo
if
[
$?
-ne
0
]
then
echo
'Process failed'
exit
1
else
format_configuration_file
fi
}
new_edition_build
(){
...
...
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