Skip to content
Snippets Groups Projects
Commit f0949d57 authored by Andre Maroneze's avatar Andre Maroneze Committed by Valentin Perrelle
Browse files

[Analysis-scripts] update make-path

parent 3e9a07d9
No related branches found
No related tags found
No related merge requests found
...@@ -121,17 +121,20 @@ open_file() { ...@@ -121,17 +121,20 @@ open_file() {
} }
make_path() { make_path() {
cat <<EOF > frama-c-path.mk dir=".frama-c"
if [ "$#" -gt 0 ]; then
dir="$1"
fi
cat <<EOF > "${dir}/path.mk"
FRAMAC_DIR=${DIR} FRAMAC_DIR=${DIR}
ifeq (\$(wildcard \$(FRAMAC_DIR)),) ifeq (\$(wildcard \$(FRAMAC_DIR)),)
# Frama-C not installed locally; using the version in the PATH # Frama-C not installed locally; using the version in the PATH
else else
FRAMAC=\$(FRAMAC_DIR)/frama-c FRAMAC=\$(FRAMAC_DIR)/frama-c
FRAMAC_GUI=\$(FRAMAC_DIR)/frama-c-gui FRAMAC_GUI=\$(FRAMAC_DIR)/frama-c-gui
FRAMAC_CONFIG=\$(FRAMAC_DIR)/frama-c-config
endif endif
EOF EOF
echo "Wrote to: frama-c-path.mk" echo "Wrote to: ${dir}/path.mk"
} }
flamegraph() { flamegraph() {
...@@ -237,7 +240,7 @@ case "$command" in ...@@ -237,7 +240,7 @@ case "$command" in
;; ;;
"make-path") "make-path")
shift; shift;
make_path; make_path "$@";
;; ;;
"list-files") "list-files")
shift; shift;
......
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