[scripts] updated source generation script