Skip to content
Snippets Groups Projects
Commit 352d26ea authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[doc] allow building manuals without suffix

- still checks versions
- fix a minor typo
parent e7c3c461
No related branches found
No related tags found
No related merge requests found
...@@ -63,8 +63,12 @@ build () { ...@@ -63,8 +63,12 @@ build () {
echo "######### $1 failed" echo "######### $1 failed"
exit 1 exit 1
fi fi
# extract extension, add suffix, re-append extension if [ "$NO_SUFFIX" == "yes" ] ; then
MANUAL=${2%.*}-$3.${2##*.} MANUAL=$2
else
# extract extension, add suffix, re-append extension
MANUAL=${2%.*}-$3.${2##*.}
fi
cp -f $1 manuals/$MANUAL cp -f $1 manuals/$MANUAL
echo "##### $MANUAL copied" echo "##### $MANUAL copied"
...@@ -112,7 +116,7 @@ else ...@@ -112,7 +116,7 @@ else
fi fi
# Sanity check: version differences between Frama-C, ACSL and E-ACSL # Sanity check: version differences between Frama-C, ACSL and E-ACSL
FAIL = 0 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 FAIL=1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment