summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Müller-Klieser <s.mueller-klieser@phytec.de>2018-03-29 11:34:20 +0200
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2018-04-03 09:59:48 +0200
commit1d23fb138ce60e2879922716ee87416a645f685f (patch)
treef9157721254c30f0b32506398e56878a0e9779b8
parentf47a5d334e7cf3d13085aac8d07ba78880be5ffc (diff)
downloadmeta-phytec-1d23fb138ce60e2879922716ee87416a645f685f.tar.bz2
meta-phytec-1d23fb138ce60e2879922716ee87416a645f685f.zip
scripts: init: handle release notes
We store the up-to-date release notes in the meta data git repository phy2octo. The file has the same name as the full BSP version. If the init scripts finds a release note matching the BSP version, it will be copied to the base directory. Checking out a BSP in future will result in having an updated ReleaseNotes file. Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rwxr-xr-xscripts/init6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/init b/scripts/init
index 75ee050..29c23ba 100755
--- a/scripts/init
+++ b/scripts/init
@@ -31,6 +31,12 @@ if [ "$ROOTDIR" = "" ]; then
exit 1;
fi
+# copy release notes to rootdir, if they are present in phy2octo
+RELEASE_UID=$(sed -n 's:.*release_uid="\([^"]*\).*:\1:p' ${ROOTDIR}/.repo/manifest.xml)
+RELEASE_NOTES="${ROOTDIR}/.repo/manifests/releasenotes/${RELEASE_UID}"
+if [ -e ${RELEASE_NOTES} ]; then
+ install -pm 0644 ${RELEASE_NOTES} ${ROOTDIR}/ReleaseNotes
+fi
# Folders and Readme
PHYTEC_DIR="${ROOTDIR}/sources/meta-phytec"