script: automate stock build