diff options
Diffstat (limited to 'resources/scripts/helpers/build/release/tobuild')
-rwxr-xr-x | resources/scripts/helpers/build/release/tobuild | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/release/tobuild b/resources/scripts/helpers/build/release/tobuild index ad8bac9..c389fa8 100755 --- a/resources/scripts/helpers/build/release/tobuild +++ b/resources/scripts/helpers/build/release/tobuild @@ -69,6 +69,16 @@ cp "resources/scripts/helpers/build/module/bucts" "${distdir}/resources/scripts/ cp "resources/scripts/helpers/build/module/flashrom" "${distdir}/resources/scripts/helpers/build/module/" cp "resources/scripts/misc/powertop.trisquel7" "${distdir}/" +# this has to be done before generating +# the "version" file +if [ ! -f "version" ]; then + # generate ChangeLog and NEWS files + rm -f "ChangeLog" "NEWS" + git log > "${distdir}/ChangeLog" + cp "${distdir}/ChangeLog" "${distdir}/NEWS" +fi + +# include version information printf '%s\n' "${version}" >"${distdir}/version" # that is all. now tar it up |