aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release/roms
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/helpers/build/release/roms')
-rwxr-xr-xresources/scripts/helpers/build/release/roms9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/release/roms b/resources/scripts/helpers/build/release/roms
index c6c5c5c4..8e784c01 100755
--- a/resources/scripts/helpers/build/release/roms
+++ b/resources/scripts/helpers/build/release/roms
@@ -60,6 +60,15 @@ for payload in *; do
cp -R "${board}/" "${archivename}/"
+ # 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 > "${archivename}/ChangeLog"
+ cp "${archivename}/ChangeLog" "${archivename}/NEWS"
+ fi
+
# Put the version string in the archive.
printf '%s\n' "${version}" >"${archivename}/version"