File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,17 +5,19 @@ command -v shellcheck > /dev/null && shellcheck "$0"
5
5
export PATH=$PATH :/root/.cargo/bin
6
6
7
7
mkdir -p artifacts
8
- contractdir =" $1 "
8
+ contractdirs =" $@ "
9
9
10
10
# There are two cases here
11
11
# 1. All contracts (or one) are included in the root workspace (eg. `cosmwasm-template`, `cosmwasm-examples`, `cosmwasm-plus`)
12
12
# In this case, we pass no argument, just mount the proper directory.
13
- # 2. Contacts are excluded from the root workspace, but import relative paths from other packages (only `cosmwasm`).
13
+ # 2. Contracts are excluded from the root workspace, but import relative paths from other packages (only `cosmwasm`).
14
14
# In this case, we mount root workspace and pass in a path `docker run <repo> ./contracts/hackatom`
15
15
16
16
# This parameter allows us to mount a folder into docker container's "/code"
17
17
# and build "/code/contracts/mycontract".
18
18
# Note: if contractdir is "." (default in Docker), this ends up as a noop
19
+ for contractdir in $contractdirs
20
+ do
19
21
echo " Building contract in $( realpath -m " $contractdir " ) "
20
22
(
21
23
cd " $contractdir "
39
41
)
40
42
41
43
echo " done"
44
+ done
You can’t perform that action at this time.
0 commit comments