]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
Save the most recent commits in a changelog file
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 May 2016 22:28:30 +0000 (00:28 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 May 2016 22:28:30 +0000 (00:28 +0200)
This allows quickly to find out which revision
was actually built without looking that up manually.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index f3eaa3a0e64f848a44b18a889da95194f60e51b4..fae811c6ac43ebeb14319aa5148e2d0718a1ad88 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -83,6 +83,9 @@ build() {
                ./make.sh --target="${target}" build | tee "${build}/build.log"
                local ret=${PIPESTATUS[0]}
 
+               # Save the changelog
+               git log -50 > "${build}/changelog.txt"
+
                # Save the result
                if [ "${ret}" = "0" ]; then
                        mv -v *.iso *.img.gz *.tar.bz2 *.md5 packages/ "${build}"