Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Reference manuals
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Iterations
Requirements
External wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NEMO Workspace
Documentation
Reference manuals
Commits
86469f18
Commit
86469f18
authored
2 years ago
by
Tomas Lovato
Browse files
Options
Downloads
Patches
Plain Diff
add clean option in the script to remove previous builds
parent
a8443f39
No related branches found
Branches containing commit
No related tags found
1 merge request
!1
Import manuals v4.2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+2
-0
2 additions, 0 deletions
README.md
manual_build.sh
+8
-5
8 additions, 5 deletions
manual_build.sh
with
10 additions
and
5 deletions
README.md
+
2
−
0
View file @
86469f18
...
...
@@ -30,6 +30,8 @@ To generate the PDF version of manual(s) use the following:
Optional commands :
`-c`
Clean up previous builds of the manual(s)
`-p`
Produce manual with figures and disable draft watermark
`-r`
Specify the release version number of the manual(s) instead of the branch name
...
...
This diff is collapsed.
Click to expand it.
manual_build.sh
+
8
−
5
View file @
86469f18
...
...
@@ -5,30 +5,33 @@
manuals
=
'NEMO SI3 TOP'
# Initialization of the options
x_p
=
''
;
x_r
=
''
x_c
=
''
;
x_p
=
''
;
x_r
=
''
# Choice of the options ---
while
getopts
hpr: option
;
do
while
getopts
c
hpr: option
;
do
case
$option
in
(
'h'
)
cat
<<
EOF
Usage:
------
./manual_build.sh [-p] [-r version ] manual
./manual_build.sh
[-c]
[-p] [-r version ] manual
Mandatory
Chose one model manual among
${
manuals
}
or all (if not provided compile "NEMO")
Optional
-c Clean up previous builds of the manual(s)
-p Produce manual with figures and disable draft watermark
-r Specify the release version number of the manual(s) instead of the branch name
EOF
exit
0
;;
(
'c'
)
x_c
=
0
;;
(
'p'
)
x_p
=
0
;;
(
'r'
)
x_r
=
${
OPTARG
}
;;
esac
done
shift
$((
$OPTIND
-
1
))
;
VER_NUM
=
${
x_
r
}
CLEAN
=
${
x_
c
}
DRAFT
=
${
x_p
}
VER_NUM
=
${
x_r
}
CMP_NAM
=
$1
## Initialisation
...
...
@@ -101,7 +104,7 @@ echo "Fontawesome path is $fontawesome \n"
for
model
in
$models
;
do
echo
"Start compiling manual for
$model
"
#
clean $model
if
[
"x
${
CLEAN
}
"
!=
'x'
]
;
then
clean
$model
;
fi
build
$model
printf
"
\t
¤ End of building run
\n
"
echo
...
...
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