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
714cb4e1
Commit
714cb4e1
authored
3 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[doc] (really) check ACSL manuals versions
parent
2fbef336
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
doc/build-manuals.sh
+9
-2
9 additions, 2 deletions
doc/build-manuals.sh
with
9 additions
and
2 deletions
doc/build-manuals.sh
+
9
−
2
View file @
714cb4e1
...
@@ -43,7 +43,6 @@ FC_SUFFIX=$(cat ../VERSION)-$(cat ../VERSION_CODENAME)
...
@@ -43,7 +43,6 @@ FC_SUFFIX=$(cat ../VERSION)-$(cat ../VERSION_CODENAME)
FC_SUFFIX
=
"
$(
echo
${
FC_SUFFIX
}
|
sed
-e
"s/~/-/"
)
"
FC_SUFFIX
=
"
$(
echo
${
FC_SUFFIX
}
|
sed
-e
"s/~/-/"
)
"
ACSL_SUFFIX
=
$(
grep
acslversion acsl/version.tex |
sed
's/.*{\([^{}\\]*\).*/\1/'
)
ACSL_SUFFIX
=
$(
grep
acslversion acsl/version.tex |
sed
's/.*{\([^{}\\]*\).*/\1/'
)
FC_VERSION
=
$(
cat
../VERSION
)
FC_VERSION
=
$(
cat
../VERSION
)
ACSL_IMPLEM_VERSION
=
$(
grep
fcversion acsl/version.tex |
sed
's/.*{\([^{}\\]*\).*/\1/'
)
EACSL_SUFFIX
=
$(
grep
'newcommand{\\eacsllangversion'
../src/plugins/e-acsl/doc/refman/main.tex |
sed
's/.*{\([^{}\\]*\).*/\1/'
)
EACSL_SUFFIX
=
$(
grep
'newcommand{\\eacsllangversion'
../src/plugins/e-acsl/doc/refman/main.tex |
sed
's/.*{\([^{}\\]*\).*/\1/'
)
# sanity check
# sanity check
if
[
"
$EACSL_SUFFIX
"
=
""
]
;
then
if
[
"
$EACSL_SUFFIX
"
=
""
]
;
then
...
@@ -67,7 +66,7 @@ build () {
...
@@ -67,7 +66,7 @@ build () {
MANUAL
=
${
2
%.*
}
-
$3
.
${
2
##*.
}
MANUAL
=
${
2
%.*
}
-
$3
.
${
2
##*.
}
cp
-f
$1
manuals/
$MANUAL
cp
-f
$1
manuals/
$MANUAL
echo
"#####
$MANUAL
copied"
echo
"#####
$MANUAL
copied"
}
}
EACSL_DOC
=
../src/plugins/e-acsl/doc
EACSL_DOC
=
../src/plugins/e-acsl/doc
...
@@ -96,9 +95,17 @@ acsl/acsl.pdf,acsl.pdf,$ACSL_SUFFIX \
...
@@ -96,9 +95,17 @@ acsl/acsl.pdf,acsl.pdf,$ACSL_SUFFIX \
$EACSL_DOC
/refman/e-acsl.pdf,e-acsl.pdf,
$EACSL_SUFFIX
$EACSL_DOC
/refman/e-acsl.pdf,e-acsl.pdf,
$EACSL_SUFFIX
# Sanity check: version differences between Frama-C, ACSL and E-ACSL
# Sanity check: version differences between Frama-C, ACSL and E-ACSL
FAIL
=
0
if
[
"
$ACSL_SUFFIX
"
!=
"
$EACSL_SUFFIX
"
]
;
then
if
[
"
$ACSL_SUFFIX
"
!=
"
$EACSL_SUFFIX
"
]
;
then
echo
"WARNING: different versions for ACSL and E-ACSL manuals:
$ACSL_SUFFIX
versus
$EACSL_SUFFIX
"
echo
"WARNING: different versions for ACSL and E-ACSL manuals:
$ACSL_SUFFIX
versus
$EACSL_SUFFIX
"
FAIL
=
1
fi
fi
# The file fc_version.tex is created by the compilation of the implementation manual
ACSL_IMPLEM_VERSION
=
$(
grep
fcversion acsl/fc_version.tex |
sed
's/.*{\([^{}\\]*\).*/\1/'
)
if
[
"
$ACSL_IMPLEM_VERSION
"
!=
"
$FC_VERSION
"
]
;
then
if
[
"
$ACSL_IMPLEM_VERSION
"
!=
"
$FC_VERSION
"
]
;
then
echo
"WARNING: ACSL implementation refers to a different Frama-C version:
$ACSL_IMPLEM_VERSION
versus
$FC_VERSION
"
echo
"WARNING: ACSL implementation refers to a different Frama-C version:
$ACSL_IMPLEM_VERSION
versus
$FC_VERSION
"
FAIL
=
1
fi
fi
exit
$FAIL
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