Create gen_repdefs.sh

the shell script to generate replication definition