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
f4237b77
Commit
f4237b77
authored
2 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[distrib] build src-distrib
parent
8faf1cb5
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
devel_tools/make-distrib.sh
+20
-13
20 additions, 13 deletions
devel_tools/make-distrib.sh
with
20 additions
and
13 deletions
build
-distrib.sh
→
devel_tools/make
-distrib.sh
+
20
−
13
View file @
f4237b77
#!
/usr/bin/bash
#!/usr/bin/
env
bash
##########################################################################
##########################################################################
# #
# #
# This file is part of Frama-C. #
# This file is part of Frama-C. #
...
@@ -21,21 +21,28 @@
...
@@ -21,21 +21,28 @@
# #
# #
##########################################################################
##########################################################################
if
[[
$#
>
1
]]
;
then
set
-euxo
pipefail
echo
"usage:
$0
[ configuration_file ]"
exit
1
if
[
!
-f
configure
]
;
then
elif
[[
$#
=
1
]]
;
then
echo
"No 'configure' file, you should first run 'autoconf'"
source
$1
exit
2
fi
fi
VERSION
=
${
VERSION
:-
$(
cat
VERSION
)
}
EXTERNAL_PLUGINS
=
$(
find src/plugins
-type
d
-name
".git"
|
sed
"s/.git//"
)
CODENAME
=
${
CODENAME
:-
$(
cat
VERSION_CODENAME
)
}
FRAMAC
=
"frama-c.tar"
git archive HEAD
-o
$FRAMAC
--prefix
"frama-c/"
FRAMAC
=
frama-c-
$VERSION
-
$CODENAME
ACC
=
$
FRAMAC
FPATH
=
$FRAMAC
/
for
plugin
in
$EXTERNAL_PLUGINS
;
do
TAR
=
"
$(
basename
$plugin
)
.tar"
git
-C
$plugin
archive HEAD
-o
$TAR
--prefix
"frama-c/
$plugin
/"
ACC
=
"
$ACC
$plugin$TAR
"
done
git archive
--format
=
tar
--prefix
$FPATH
HEAD
>
$FRAMAC
.tar
tar
--concatenate
--file
=
$ACC
tar
rf
$FRAMAC
configure
--transform
's,^,frama-c/,'
gzip
-9
<
$FRAMAC
>
$FRAMAC
.gz
TRANSFO
=
"s,^,
$FPATH
,"
rm
-f
$ACC
tar
rf
$FRAMAC
.tar configure
--transform
$TRANSFO
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