pdate build script