aboutsummaryrefslogtreecommitdiff
path: root/resources/scripts/helpers/build/release/src
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-11-16 13:53:44 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-11-16 13:53:44 +0100
commiteb410db18e42883febe04277f74e80a833399c17 (patch)
tree815dfea9402d9f64bc4bb683f022510e809724d6 /resources/scripts/helpers/build/release/src
parent54f5b2622fb3765ba0b68c0f33450f299e86f540 (diff)
downloadlibrebootfr-eb410db18e42883febe04277f74e80a833399c17.tar.gz
librebootfr-eb410db18e42883febe04277f74e80a833399c17.zip
release build scripts: add ChangeLog and NEWS to release
Diffstat (limited to 'resources/scripts/helpers/build/release/src')
-rwxr-xr-xresources/scripts/helpers/build/release/src10
1 files changed, 10 insertions, 0 deletions
diff --git a/resources/scripts/helpers/build/release/src b/resources/scripts/helpers/build/release/src
index b866d123..6dd06202 100755
--- a/resources/scripts/helpers/build/release/src
+++ b/resources/scripts/helpers/build/release/src
@@ -50,6 +50,16 @@ for resource in *; do
esac
done
+# 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"
printf 'Cleaning files in %s/\n' "${distdir}"