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
6c48f892
Commit
6c48f892
authored
2 years ago
by
Patrick Baudin
Committed by
François Bobot
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[Scripts] bin/frama-c-build-scripts.sh alllows generation of the opam file
parent
be848d6b
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/frama-c-build-scripts.sh
+15
-1
15 additions, 1 deletion
bin/frama-c-build-scripts.sh
with
15 additions
and
1 deletion
bin/frama-c-build-scripts.sh
+
15
−
1
View file @
6c48f892
...
@@ -59,7 +59,15 @@ SCRIPT_LIBS=""
...
@@ -59,7 +59,15 @@ SCRIPT_LIBS=""
DuneProject
()
{
DuneProject
()
{
echo
"(lang dune 3.0)"
echo
"(lang dune 3.0)"
echo
"(package (name
${
PACKAGE
}
))"
echo
"(generate_opam_files true)"
echo
"(name
${
PACKAGE
}
)"
echo
"(maintainers
\"
anonymous
\"
)"
echo
"(package (name
${
PACKAGE
}
)"
echo
" (depends"
echo
" (
\"
frama-c
\"
(>= 26.0))"
echo
" )"
echo
" (tags (
\"
Frama-C scripts
\"
))"
echo
")"
}
}
Dune
()
{
Dune
()
{
...
@@ -120,6 +128,12 @@ fi
...
@@ -120,6 +128,12 @@ fi
echo
"To compile the all scripts defined inside this 'dune project'
\"
${
PACKAGE
}
\"
, runs the following command:"
echo
"To compile the all scripts defined inside this 'dune project'
\"
${
PACKAGE
}
\"
, runs the following command:"
EchoDuneCmd
"dune build @install"
EchoDuneCmd
"dune build @install"
echo
"So, the script libraries, are installed into the local '_build' directory."
echo
"So, the script libraries, are installed into the local '_build' directory."
echo
"That also generate the 'opam' file
\"
${
PACKAGE
}
.opam
\"
allowing a global installation of all script libraries."
echo
""
echo
""
echo
"To load this script library from Frama-C, runs the following command:"
echo
"To load this script library from Frama-C, runs the following command:"
EchoDuneCmd
"dune exec -- frama-c -load-library
${
PACKAGE
}
.
${
SCRIPT_NAME
}
..."
EchoDuneCmd
"dune exec -- frama-c -load-library
${
PACKAGE
}
.
${
SCRIPT_NAME
}
..."
echo
""
echo
"All libraries of this 'dune project'
\"
${
PACKAGE
}
\"
can also be installed via 'dune' using from the generated 'opam' file:
\"
${
PACKAGE
}
.opam
\"
"
EchoDuneCmd
"dune install"
echo
"Then, this script library can directly be loaded by Frama-C from the following command:"
echo
" > frama-c -load-library
${
PACKAGE
}
.
${
SCRIPT_NAME
}
..."
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