File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 10
10
# USAGE
11
11
# build.sh [--compiler {intel|gnu|<other>}] [--cflags '<custom compiler flags here>']
12
12
# [--coverage [{yes|no}]] [--profile [{yes|no}]] [--skip-tests [{yes|no}]]
13
- # [--skip-documentation [{yes|no}]] [--enable-unicode [{yes|no}]] [--help]"
13
+ # [--skip-documentation [{yes|no}]] [--enable-unicode [{yes|no}]] [--help]
14
+ # [--clean]
14
15
#
15
16
# By default, if invoked without any flags, this build script will build the
16
17
# json-fortran library using gfortran,
32
33
#
33
34
# --help : Print a usage message and exit.
34
35
#
36
+ # --clean : Delete generated files and clean up after builds
37
+ #
38
+ #
35
39
# The following flags all (optionally) accept an argument, "yes" or "no." If
36
40
# no argument is passed, "yes" will be assumed.
37
41
#
@@ -221,6 +225,9 @@ while [ "$#" -ge "1" ]; do # Get command line arguments while there are more lef
221
225
print_usage
222
226
exit 0
223
227
;;
228
+ --clean)
229
+ rm -r src{,/tests}/* .o $DOCDIR * $LIBDIR * $BINDIR * * .gcov*
230
+ ;;
224
231
* )
225
232
echo " Unknown flag, \" $1 \" , passed to ${script_name} !" 2>&1
226
233
print_usage
You can’t perform that action at this time.
0 commit comments