aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore2
-rwxr-xr-xresources/scripts/helpers/build/release/docs10
-rwxr-xr-xresources/scripts/helpers/build/release/roms9
-rwxr-xr-xresources/scripts/helpers/build/release/src10
-rwxr-xr-xresources/scripts/helpers/build/release/tobuild10
-rwxr-xr-xresources/scripts/helpers/build/release/util9
6 files changed, 50 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d94ae446..42c9c468 100644
--- a/.gitignore
+++ b/.gitignore
@@ -27,3 +27,5 @@
/*.bin
/resources/utilities/i945-pwm/i945-pwm
/push
+/ChangeLog
+/NEWS
diff --git a/resources/scripts/helpers/build/release/docs b/resources/scripts/helpers/build/release/docs
index 54faac53..c2099a0b 100755
--- a/resources/scripts/helpers/build/release/docs
+++ b/resources/scripts/helpers/build/release/docs
@@ -45,6 +45,16 @@ rm -Rf "${distdir:?}/"
mkdir -p "${distdir}/"
cp -r docs/* "${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"
printf 'Creating compressed documentation archive at %s\n' "${distdir}.tar.xz"
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"
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}"
diff --git a/resources/scripts/helpers/build/release/tobuild b/resources/scripts/helpers/build/release/tobuild
index ad8bac93..c389fa8f 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
diff --git a/resources/scripts/helpers/build/release/util b/resources/scripts/helpers/build/release/util
index 95bc234d..cdef345d 100755
--- a/resources/scripts/helpers/build/release/util
+++ b/resources/scripts/helpers/build/release/util
@@ -61,6 +61,15 @@ rm -f "${distdir}.tar.xz"
# this is where they will go
mkdir -p "${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"