1#!/bin/bash 2 3ANNOTATIONS=( 4 org.checkerframework.checker.nullness.qual.Nullable 5) 6 7for a in ${ANNOTATIONS[@]}; do 8 package=${a%.*} 9 class=${a##*.} 10 dir=$(dirname $0)/src/${package//.//} 11 file=${class}.java 12 13 mkdir -p ${dir} 14 sed -e"s/__PACKAGE__/${package}/" -e"s/__CLASS__/${class}/" tmpl.java > ${dir}/${file} 15done 16