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
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
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
Charles Southerland
frama-c
Commits
a5fcc449
Commit
a5fcc449
authored
4 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[release-script] Fixes a few typos
parent
9b6d2cd5
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
+16
-9
16 additions, 9 deletions
bin/build-src-distrib.sh
with
16 additions
and
9 deletions
bin/build-src-distrib.sh
+
16
−
9
View file @
a5fcc449
...
@@ -23,6 +23,12 @@ if ! command -v git-lfs >/dev/null 2>/dev/null; then
...
@@ -23,6 +23,12 @@ if ! command -v git-lfs >/dev/null 2>/dev/null; then
exit
99
exit
99
fi
fi
# rgrep needs to be installed
if
!
command
-v
rgrep
--version
>
/dev/null 2>/dev/null
;
then
echo
"rgrep is required"
exit
99
fi
function
run
{
function
run
{
cmd
=
$1
cmd
=
$1
echo
"
$cmd
"
echo
"
$cmd
"
...
@@ -37,7 +43,7 @@ function step {
...
@@ -37,7 +43,7 @@ function step {
echo
"Step
$1
:
$2
"
echo
"Step
$1
:
$2
"
}
}
# find_repository path url
# find_repository
_DIRECTORY_BRANCH
path url
# - path: path to the directory
# - path: path to the directory
# - url: URL of the repository
# - url: URL of the repository
# Checks:
# Checks:
...
@@ -55,7 +61,7 @@ function find_repository_DIRECTORY_BRANCH {
...
@@ -55,7 +61,7 @@ function find_repository_DIRECTORY_BRANCH {
run
"git clone
$url
$name
"
run
"git clone
$url
$name
"
;;
;;
*
)
*
)
echo
"The
Github Website
repository must be linked at
$name
(clone or symbolic link)"
echo
"The
$url
repository must be linked at
$name
(clone or symbolic link)"
exit
1
exit
1
;
&
;
&
esac
esac
...
@@ -70,7 +76,7 @@ function find_repository_DIRECTORY_BRANCH {
...
@@ -70,7 +76,7 @@ function find_repository_DIRECTORY_BRANCH {
# proceed_anyway message
# proceed_anyway message
# - message: text to display if we have to stop
# - message: text to display if we have to stop
# Ask if the user want to continue and display the message if not (then exit)
# Ask if the user want
s
to continue and display the message if not (then exit)
function
proceed_anyway
{
function
proceed_anyway
{
message
=
$1
message
=
$1
echo
"Proceed anyway? [y/N]"
echo
"Proceed anyway? [y/N]"
...
@@ -96,7 +102,7 @@ function look_for_uncommited_changes {
...
@@ -96,7 +102,7 @@ function look_for_uncommited_changes {
function
look_for_frama_c_dev
{
function
look_for_frama_c_dev
{
rgrep
-i
"frama-c+dev"
src &> /dev/null
rgrep
-i
"frama-c+dev"
src &> /dev/null
if
[
"
$?
"
==
"0"
]
;
then
if
[
"
$?
"
==
"0"
]
;
then
echo
"### WARNING: Remaing frama-c+dev occurrences in 'src'"
echo
"### WARNING: Remain
in
g frama-c+dev occurrences in 'src'"
proceed_anyway
"Update API, then run the script again"
proceed_anyway
"Update API, then run the script again"
fi
fi
}
}
...
@@ -617,7 +623,7 @@ if test "$FINAL_RELEASE" = "yes"; then
...
@@ -617,7 +623,7 @@ if test "$FINAL_RELEASE" = "yes"; then
else
else
if
test
\!
-f
$INCLUDED_MANUALS_CONFIG
;
then
if
test
\!
-f
$INCLUDED_MANUALS_CONFIG
;
then
echo
"### WARNING: The
$INCLUDED_MANUALS_CONFIG
file is missing"
echo
"### WARNING: The
$INCLUDED_MANUALS_CONFIG
file is missing"
echo
"Do you want to create
a
one? [y/N]"
echo
"Do you want to create one? [y/N]"
read
CHOICE
read
CHOICE
case
"
${
CHOICE
}
"
in
case
"
${
CHOICE
}
"
in
"Y"
|
"y"
)
"Y"
|
"y"
)
...
@@ -641,10 +647,11 @@ fi
...
@@ -641,10 +647,11 @@ fi
MANUALS_DIR
=
"./doc/manuals"
MANUALS_DIR
=
"./doc/manuals"
FILTER
=
""
if
[
-z
${
VERBOSE_MAKE_DOC
+x
}
]
;
then
if
[
-z
${
VERBOSE_MAKE_DOC
+x
}
]
;
then
FILTER
=
"texfot --ignore '(Warning|Overfull|Underfull|Version)'"
if
command
-v
texfot
--version
>
/dev/null 2>/dev/null
;
then
else
FILTER
=
"texfot --ignore '(Warning|Overfull|Underfull|Version)'"
FILTER
=
""
fi
fi
fi
BUILD_DIR_ROOT
=
"/tmp/release"
BUILD_DIR_ROOT
=
"/tmp/release"
...
@@ -767,7 +774,7 @@ case "${STEP}" in
...
@@ -767,7 +774,7 @@ case "${STEP}" in
run
"cp
$OUT_DIR
/
$TARGZ_FILENAME
$BUILD_DIR_ROOT
"
run
"cp
$OUT_DIR
/
$TARGZ_FILENAME
$BUILD_DIR_ROOT
"
run
"cd
$BUILD_DIR_ROOT
; tar xzf
$TARGZ_FILENAME
"
run
"cd
$BUILD_DIR_ROOT
; tar xzf
$TARGZ_FILENAME
"
run
"./doc/release/checktar.sh
$TEST_DIR
"
run
"./doc/release/checktar.sh
$TEST_DIR
"
run
"cd
$TEST_DIR
; ./configure && make -j && make tests"
run
"cd
$TEST_DIR
; ./configure && make -j && make tests
PTESTS_OPTS=
\"
-error-code
\"
"
run
"rm -rf
$TEST_DIR
"
run
"rm -rf
$TEST_DIR
"
;
&
;
&
9
)
9
)
...
...
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