Skip to content
Snippets Groups Projects
Commit dfdd0251 authored by Allan Blanchard's avatar Allan Blanchard
Browse files

[dev] adds help message in disable-plugins.sh

parent a1edc58b
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,14 @@
# #
##########################################################################
case "$1" in
"-h"|"--help")
echo "Usage: $0 <plugin directories>"
echo " - directories are given without prefix src/plugins"
echo " - if no directory is given all plugins are enabled"
exit 0
esac
if [ ! -f VERSION ]; then
echo "This script is meant to be run from the root directory of Frama-C"
exit 2
......@@ -35,7 +43,12 @@ fi
PLUGINS=
for PLUGIN in "$@" ; do
PLUGINS="$PLUGINS $PLUGIN"
if [ -d "src/plugins/$PLUGIN" ]; then
PLUGINS="$PLUGINS $PLUGIN"
else
echo "Error: src/plugins/$PLUGIN is not a directory"
exit 2
fi
done
cat > src/plugins/dune <<EOL
......
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