Add build script for legacy knowledge