mirror of https://github.com/google/oss-fuzz.git
command parameter
This commit is contained in:
parent
b1b39adf11
commit
5c99eb3b7e
21
all.sh
21
all.sh
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash -eux
|
||||
#!/bin/bash -eu
|
||||
#
|
||||
# Copyright 2016 Google Inc.
|
||||
#
|
||||
|
@ -17,12 +17,25 @@
|
|||
################################################################################
|
||||
|
||||
# Development script to build all images.
|
||||
|
||||
./infra/base-images/all.sh
|
||||
|
||||
IGNORE="docs:infra:tpm2:scripts"
|
||||
|
||||
# Build
|
||||
./infra/base-images/all.sh
|
||||
for project in *; do
|
||||
if [[ -f $project || ":${IGNORE}:" == *":$project:"* ]]; then continue; fi
|
||||
echo "@ Building $project"
|
||||
docker build -t ossfuzz/$project $project/
|
||||
|
||||
# Execute command ($1) if any
|
||||
case ${1-} in
|
||||
"")
|
||||
;;
|
||||
compile)
|
||||
docker run --rm -ti ossfuzz/$project $@
|
||||
;;
|
||||
*)
|
||||
echo $"Usage: $0 {|compile}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
done
|
||||
|
|
Loading…
Reference in New Issue