build-script: added function to generate changelog