From 89d9465d9732849a10fc07d9d57a122195f81150 Mon Sep 17 00:00:00 2001 From: yj Date: Sat, 20 Feb 2021 23:42:36 -0600 Subject: [PATCH] feat: simple script to init a skeleton director for new protocol --- scripts/add_new_protocol.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/add_new_protocol.sh diff --git a/scripts/add_new_protocol.sh b/scripts/add_new_protocol.sh new file mode 100755 index 0000000..4582f46 --- /dev/null +++ b/scripts/add_new_protocol.sh @@ -0,0 +1,19 @@ +#!/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 + mkdir -p ./$arg/calls + touch ./$arg/event.json + touch ./$arg/overview.md + touch ./$arg/logo.png + touch ./$arg/header.png + fi +done + +echo "Arg 1: $1"