Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
pub
frama-c
Commits
530a4e8e
Commit
530a4e8e
authored
4 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[Doc] fix release distribution script
parent
869c7de4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/build-src-distrib.sh
+25
-9
25 additions, 9 deletions
bin/build-src-distrib.sh
with
25 additions
and
9 deletions
bin/build-src-distrib.sh
+
25
−
9
View file @
530a4e8e
...
...
@@ -287,17 +287,33 @@ case "${STEP}" in
for
fpath
in
$MANUALS_DIR
/
*
;
do
f
=
$(
basename
$fpath
)
f_no_ext
=
${
f
%.*
}
if
[[
$f
=
~ ^frama-c
]]
;
then
echo
"Skipping adding link to
$f
in wiki"
continue
# E-ACSL-related files are stored in subdirectory e-acsl
if
[[
$f_no_ext
=
~ ^e-acsl.
*
$
]]
;
then
destdir
=
"
$WEBSITE_DIR
/
$DOWNLOAD_DIR
/e-acsl"
else
destdir
=
"
$WEBSITE_DIR
/
$DOWNLOAD_DIR
"
fi
if
[[
$f_no_ext
=
*${
FRAMAC_VERSION_AND_CODENAME
}
]]
;
then
echo
"Skipping adding link to
$f
in wiki"
continue
if
[[
-L
$fpath
]]
;
then
# symbolic links are copied to the website and prepended with 'frama-c-'
# (except for acsl.pdf, which is copied as is)
if
[[
$f_no_ext
=
~ ^
(
e-
)
?acsl
$
]]
;
then
ln
=
"
$f
"
else
ln
=
"frama-c-
$f
"
fi
run
"rm -f
$destdir
/
$ln
"
run
"cp -P
$fpath
$destdir
/
$ln
"
run
"git -C
$destdir
add
$ln
"
else
# non-symbolic links are copied as-is to the website, and also to
# the Gitlab wiki, where they are also added as links
f_no_pdf_ext
=
"
${
f
%.pdf
}
"
echo
"- [
${
f_no_pdf_ext
%-
${
FRAMAC_VERSION_AND_CODENAME
}}
](manuals/
$f
)"
>>
$WIKI_PAGE
run
"cp
$fpath
$GITLAB_WIKI
/manuals/"
run
"git -C
$GITLAB_WIKI
add manuals/
$f
"
run
"cp
$fpath
$destdir
/
$f
"
run
"git -C
$destdir
add
$f
"
fi
echo
"- [
$f
](manuals/
$f
)"
>>
$WIKI_PAGE
run
"cp
$fpath
$GITLAB_WIKI
/manuals/"
run
"git -C
$GITLAB_WIKI
add manuals/
$f
"
done
run
"git -C
$GITLAB_WIKI
add
$PAGE_NAME
"
...
...
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