mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
run-docs-build: fix checkout of releases.rst from master
A wrong path was given given the working directory. Also revert the changes with "git reset --hard" to have a clean state before further branch switches. Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
aa378bfa84
commit
ce75f076e8
|
@ -43,11 +43,12 @@ cp -r ./_build/final/* $outputdir/bitbake/next
|
|||
# see the latest releases.
|
||||
for branch in 1.46 1.48 1.50 1.52; do
|
||||
git checkout $branch
|
||||
git checkout master doc/releases.rst
|
||||
git checkout master releases.rst
|
||||
make clean
|
||||
make publish
|
||||
mkdir $outputdir/bitbake/$branch
|
||||
cp -r ./_build/final/* $outputdir/bitbake/$branch
|
||||
git reset --hard
|
||||
done
|
||||
|
||||
# only sync bitbake folder for now. We need bitbake to be published first
|
||||
|
@ -79,11 +80,12 @@ cp -r ./_build/final/* $outputdir/next
|
|||
for branch in dunfell gatesgarth hardknott honister; do
|
||||
cd $ypdocs
|
||||
git checkout $branch
|
||||
git checkout master documentation/releases.rst
|
||||
git checkout master releases.rst
|
||||
make clean
|
||||
make publish
|
||||
mkdir $outputdir/$branch
|
||||
cp -r ./_build/final/* $outputdir/$branch
|
||||
git reset --hard
|
||||
done
|
||||
|
||||
# Yocto Project releases/tags
|
||||
|
@ -101,12 +103,13 @@ for tag in $(git tag --list 'yocto-*'); do
|
|||
if [ "$tag" = "yocto-3.3" ] || [ "$tag" = "yocto-3.4" ]; then
|
||||
git am "${scriptdir}/${tag}/0001-conf-update-for-release.patch"
|
||||
fi
|
||||
git checkout master documentation/releases.rst
|
||||
git checkout master releases.rst
|
||||
make clean
|
||||
make publish
|
||||
version=$(echo $tag | cut -c7-)
|
||||
mkdir $outputdir/$version
|
||||
cp -r ./_build/final/* $outputdir/$version
|
||||
git reset --hard
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user