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
de4578f5
Commit
de4578f5
authored
2 years ago
by
Andre Maroneze
Committed by
Allan Blanchard
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[release] apply some shellcheck suggestions
parent
0e034c3f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dev/build-release.sh
+18
-20
18 additions, 20 deletions
dev/build-release.sh
doc/release/deploy.tex
+1
-1
1 addition, 1 deletion
doc/release/deploy.tex
with
19 additions
and
21 deletions
dev/build-release.sh
+
18
−
20
View file @
de4578f5
...
@@ -81,19 +81,19 @@ FRAMAC_COM_DOWNLOAD="https://www.frama-c.com/download"
...
@@ -81,19 +81,19 @@ FRAMAC_COM_DOWNLOAD="https://www.frama-c.com/download"
show_step
"Checking version"
show_step
"Checking version"
VERSION
=
"
$(
cat
VERSION
)
"
VERSION
=
"
$(
cat
VERSION
)
"
VERSION_SAFE
=
"
$(
echo
${
VERSION
/~/-
}
)
"
VERSION_SAFE
=
"
${
VERSION
/~/-
}
"
VERSION_MODIFIER
=
$(
cat
VERSION
|
sed
-e
s/[0-9.]
*
\\\(
.
*
\\\)
/
\\
1/
)
VERSION_MODIFIER
=
$(
sed
VERSION
-e
s/[0-9.]
*
\\\(
.
*
\\\)
/
\\
1/
)
VERSION_MAJOR
=
$(
cat
VERSION
|
sed
-e
s/
\\\(
[
0-9]
*
\\\)
.[0-9]
*
.
*
/
\\
1/
)
VERSION_MAJOR
=
$(
sed
VERSION
-e
s/
\\\(
[
0-9]
*
\\\)
.[0-9]
*
.
*
/
\\
1/
)
VERSION_MINOR
=
$(
cat
VERSION
|
sed
-e
s/[0-9]
*
.
\\\(
[
0-9]
*
\\\)
.
*
/
\\
1/
)
VERSION_MINOR
=
$(
sed
VERSION
-e
s/[0-9]
*
.
\\\(
[
0-9]
*
\\\)
.
*
/
\\
1/
)
TAG
=
"
$(
git describe
--tag
)
"
TAG
=
"
$(
git describe
--tag
)
"
CODENAME
=
"
$(
cat
VERSION_CODENAME
)
"
CODENAME
=
"
$(
cat
VERSION_CODENAME
)
"
LOWER_CODENAME
=
"
$(
echo
"
$CODENAME
"
|
tr
'[:upper:]'
'[:lower:]'
)
"
LOWER_CODENAME
=
"
$(
echo
"
$CODENAME
"
|
tr
'[:upper:]'
'[:lower:]'
)
"
VERSION_AND_CODENAME
=
"
${
VERSION_SAFE
}
-
${
CODENAME
}
"
VERSION_AND_CODENAME
=
"
${
VERSION_SAFE
}
-
${
CODENAME
}
"
if
[
"
$VERSION_MINOR
"
!=
0
]
;
then
if
[
"
$VERSION_MINOR
"
!=
0
]
;
then
PREVIOUS
=
"
$VERSION_MAJOR
.
$((
$
VERSION_MINOR
-
1
))
"
PREVIOUS
=
"
$VERSION_MAJOR
.
$((
VERSION_MINOR
-
1
))
"
else
else
PREVIOUS
=
"
$((
$
VERSION_MAJOR
-
1
))
.0"
PREVIOUS
=
"
$((
VERSION_MAJOR
-
1
))
.0"
fi
fi
PREVIOUS_NAME
=
$(
git show
$PREVIOUS
:VERSION_CODENAME
)
PREVIOUS_NAME
=
$(
git show
$PREVIOUS
:VERSION_CODENAME
)
...
@@ -132,7 +132,7 @@ function prepare_file {
...
@@ -132,7 +132,7 @@ function prepare_file {
exit
2
exit
2
fi
fi
echo_green
"OK"
echo_green
"OK"
chmod
644
$1
chmod
644
"
$1
"
}
}
show_step
"Searching for a Frama-C source archive"
show_step
"Searching for a Frama-C source archive"
...
@@ -186,7 +186,7 @@ EACSL_VERSION=$(cat "$MANUALS_DIR/e-acsl-version.txt")
...
@@ -186,7 +186,7 @@ EACSL_VERSION=$(cat "$MANUALS_DIR/e-acsl-version.txt")
show_step
"Searching for changes"
show_step
"Searching for changes"
CHANGES
=
"releases/
$VERSION_MAJOR
.
$VERSION_MINOR
.md"
CHANGES
=
"releases/
$VERSION_MAJOR
.
$VERSION_MINOR
.md"
prepare_file
$CHANGES
prepare_file
"
$CHANGES
"
##########################################################################
##########################################################################
# File copy
# File copy
...
@@ -211,26 +211,26 @@ function version_name {
...
@@ -211,26 +211,26 @@ function version_name {
# $2 : extension
# $2 : extension
function
copy_normal
{
function
copy_normal
{
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$MANS_TARGET_DIR
/
$(
generic_name
$1
)
.
$2
"
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$MANS_TARGET_DIR
/
$(
generic_name
"
$1
"
)
.
$2
"
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$MANS_TARGET_DIR
/
$(
version_name
$1
)
.
$2
"
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$MANS_TARGET_DIR
/
$(
version_name
"
$1
"
)
.
$2
"
}
}
function
copy_e_acsl
{
function
copy_e_acsl
{
EACSL_TARGET_DIR
=
"
$MANS_TARGET_DIR
/e-acsl"
EACSL_TARGET_DIR
=
"
$MANS_TARGET_DIR
/e-acsl"
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$EACSL_TARGET_DIR
/
$(
generic_name
$1
)
.
$2
"
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$EACSL_TARGET_DIR
/
$(
generic_name
"
$1
"
)
.
$2
"
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$EACSL_TARGET_DIR
/
$(
version_name
$1
)
.
$2
"
cp
"
$MANUALS_DIR
/
$1
.
$2
"
"
$EACSL_TARGET_DIR
/
$(
version_name
"
$1
"
)
.
$2
"
}
}
function
copy_files
{
function
copy_files
{
for
manual
in
"
${
MANUALS
[@]
}
"
;
do
for
manual
in
"
${
MANUALS
[@]
}
"
;
do
if
[[
$manual
=
~ ^e-acsl.
*
$
]]
;
then
if
[[
$manual
=
~ ^e-acsl.
*
$
]]
;
then
copy_e_acsl
$manual
"pdf"
copy_e_acsl
"
$manual
"
"pdf"
else
else
copy_normal
$manual
"pdf"
copy_normal
"
$manual
"
"pdf"
fi
fi
done
done
for
companion
in
"
${
COMPANIONS
[@]
}
"
;
do
for
companion
in
"
${
COMPANIONS
[@]
}
"
;
do
copy_normal
$companion
"tar.gz"
copy_normal
"
$companion
"
"tar.gz"
done
done
# Eva has an old manual name that might be in use:
# Eva has an old manual name that might be in use:
...
@@ -294,7 +294,7 @@ done
...
@@ -294,7 +294,7 @@ done
echo
""
>>
$WIKI_PAGE
echo
""
>>
$WIKI_PAGE
echo
"## Companion archives"
>>
$WIKI_PAGE
echo
"## Companion archives"
>>
$WIKI_PAGE
for
archive
in
"
${
COMPANIONS
[@]
}
"
;
do
for
archive
in
"
${
COMPANIONS
[@]
}
"
;
do
NAME
=
$(
version_name
$archive
)
NAME
=
$(
version_name
"
$archive
"
)
echo
"- [
$archive
](
$FRAMAC_COM_DOWNLOAD
/
$NAME
.tar.gz)"
>>
$WIKI_PAGE
echo
"- [
$archive
](
$FRAMAC_COM_DOWNLOAD
/
$NAME
.tar.gz)"
>>
$WIKI_PAGE
done
done
echo
""
>>
$WIKI_PAGE
echo
""
>>
$WIKI_PAGE
...
@@ -330,7 +330,7 @@ cat >$JSON_DATA <<EOL
...
@@ -330,7 +330,7 @@ cat >$JSON_DATA <<EOL
]
]
},
},
EOL
EOL
echo
"
\"
description
\"
:
\"
# Main changes since
$PREVIOUS
$PREVIOUS_NAME
\n
$(
cat
$CHANGES
|
sed
-z
's/\n/\\n/g'
|
sed
's/\(\#.*\)/#\1/'
)
\"
"
>>
$JSON_DATA
echo
"
\"
description
\"
:
\"
# Main changes since
$PREVIOUS
$PREVIOUS_NAME
\n
$(
sed
"
$CHANGES
"
-z
's/\n/\\n/g'
|
sed
's/\(\#.*\)/#\1/'
)
\"
"
>>
$JSON_DATA
echo
"}"
>>
$JSON_DATA
echo
"}"
>>
$JSON_DATA
echo
"Release data file built"
echo
"Release data file built"
...
@@ -355,8 +355,6 @@ mkdir -p $WEBSITE_DL_DIR/e-acsl
...
@@ -355,8 +355,6 @@ mkdir -p $WEBSITE_DL_DIR/e-acsl
GZ_TARGET_DIR
=
$WEBSITE_DL_DIR
GZ_TARGET_DIR
=
$WEBSITE_DL_DIR
MANS_TARGET_DIR
=
$WEBSITE_DL_DIR
MANS_TARGET_DIR
=
$WEBSITE_DL_DIR
EACSL_SUBDIR
=
"yes"
GENERIC
=
"yes"
copy_files
copy_files
...
@@ -376,7 +374,7 @@ version: $LOWER_CODENAME
...
@@ -376,7 +374,7 @@ version: $LOWER_CODENAME
title: Installation instructions for
$CODENAME
title: Installation instructions for
$CODENAME
---
---
EOL
EOL
cat
./INSTALL.md
|
sed
-e
"s/^
\(
# Installing Frama-C
\)
$/
\1
$EXT
/"
>>
$INSTALL_WEBPAGE
sed
./INSTALL.md
-e
"s/^
\(
# Installing Frama-C
\)
$/
\1
$EXT
/"
>>
$INSTALL_WEBPAGE
echo
"Installation file built"
echo
"Installation file built"
...
...
This diff is collapsed.
Click to expand it.
doc/release/deploy.tex
+
1
−
1
View file @
de4578f5
...
@@ -95,7 +95,7 @@ For final release \textbf{ONLY}, the following files must appear as \textbf{modi
...
@@ -95,7 +95,7 @@ For final release \textbf{ONLY}, the following files must appear as \textbf{modi
\item
\texttt
{
e-acsl/e-acsl.pdf
}
\item
\texttt
{
e-acsl/e-acsl.pdf
}
\item
\texttt
{
e-acsl/e-acsl-implementation.pdf
}
\item
\texttt
{
e-acsl/e-acsl-implementation.pdf
}
\item
\texttt
{
e-acsl/e-acsl-manual.pdf
}
\item
\texttt
{
e-acsl/e-acsl-manual.pdf
}
\item
\texttt
{
frama-c-aorai-example.tgz
}
\item
\texttt
{
frama-c-aorai-example.t
ar.
gz
}
\item
\texttt
{
hello.tar.gz
}
\item
\texttt
{
hello.tar.gz
}
\end{itemize}
\end{itemize}
...
...
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