-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
27 lines (24 loc) · 1.45 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
get-latest:
wget -N 'https://raw.githubusercontent.com/dapphub/erc20/master/src/erc20.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-auth/master/src/auth.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-note/master/src/note.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-exec/master/src/exec.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-math/master/src/math.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-stop/master/src/stop.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-token/master/src/base.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-thing/master/src/thing.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-token/master/src/token.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-vault/master/src/vault.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-vault/master/src/multivault.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-guard/master/src/guard.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-roles/master/src/roles.sol'
wget -N 'https://raw.githubusercontent.com/dapphub/ds-proxy/master/src/proxy.sol'
git add *.sol
fix-imports:
sed -E "s#^import ['\"](ds-[[:alpha:]]*|erc20)/([[:alpha:]]*)\.sol['\"];#import \"./\2.sol\";#" *.sol -i
sed -E "s#import ['\"]erc20/erc20.sol['\"];#import \"./erc20.sol\";#" *.sol -i
test:
solc *.sol
upgrade: get-latest fix-imports test
git add *.sol
git commit -m "upgrade dappsys"