2021-02-21 05:42:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# A bash script to add protocol info directory skeleton
|
|
|
|
|
|
|
|
for arg in "$@"
|
|
|
|
do
|
|
|
|
if [ "$arg" == "--help" ] || [ "$arg" == "-h" ]
|
|
|
|
then
|
|
|
|
echo "Pass in the name of the protocol whose info you want to add. e.g: ./add_new_protocol.sh rarible"
|
|
|
|
else
|
|
|
|
mkdir -p ./$arg
|
2021-04-22 17:46:44 +00:00
|
|
|
|
|
|
|
mkdir -p ./$arg/resources
|
|
|
|
mkdir -p ./$arg/resources/calls
|
|
|
|
mkdir -p ./$arg/resources/Gov Weekly
|
|
|
|
|
|
|
|
mkdir -p ./$arg/contracts
|
|
|
|
touch ./$arg/contracts/governance.json
|
|
|
|
touch ./$arg/contracts/token.json
|
|
|
|
|
|
|
|
touch ./$arg/index.json
|
2021-02-25 19:47:46 +00:00
|
|
|
touch ./$arg/events.json
|
2021-02-21 05:42:36 +00:00
|
|
|
touch ./$arg/overview.md
|
|
|
|
touch ./$arg/logo.png
|
|
|
|
touch ./$arg/header.png
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "Arg 1: $1"
|