add buildIndex.sh, auto create index file