mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 20:59:02 +02:00
89 lines
2.0 KiB
Bash
Executable File
89 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# Called with $1 as the build directory
|
|
# $2 as the path to yocto-docs
|
|
# $3 as the path to bitbake
|
|
builddir=$1
|
|
ypdocs=$2/documentation/
|
|
bbdocs=$3/doc/
|
|
docs_buildtools=/srv/autobuilder/autobuilder.yoctoproject.org/pub/buildtools/x86_64-buildtools-docs-nativesdk-standalone-3.2+snapshot-20201105.sh
|
|
outputdir=$builddir/output
|
|
|
|
|
|
cd $builddir
|
|
mkdir buildtools
|
|
$docs_buildtools -y -d $builddir/buildtools
|
|
. $builddir/buildtools/environment-setup*
|
|
|
|
#wget https://downloads.yoctoproject.org/mirror/docbook-mirror/docbook-archives-20201105.tar.xz
|
|
docbookarchive=/srv/autobuilder/autobuilder.yoctoproject.org/pub/docbook-mirror/docbook-archives-20201105.tar.xz
|
|
mkdir $outputdir
|
|
cd $outputdir
|
|
tar -xJf $docbookarchive
|
|
|
|
cd $bbdocs
|
|
git checkout master
|
|
make clean
|
|
make publish
|
|
mkdir $outputdir/bitbake
|
|
mv ./_build/html/* $outputdir/bitbake
|
|
|
|
git checkout master-next
|
|
make clean
|
|
make publish
|
|
mkdir $outputdir/bitbake/next
|
|
mv ./_build/html/* $outputdir/bitbake/next
|
|
|
|
git checkout 1.48
|
|
make clean
|
|
make publish
|
|
mkdir $outputdir/bitbake/1.48
|
|
mv ./_build/html/* $outputdir/bitbake/1.48
|
|
|
|
#git checkout 1.46
|
|
#make clean
|
|
#make publish
|
|
#mkdir $outputdir/bitbake/1.46
|
|
#mv ./_build/html/* $outputdir/bitbake/1.46
|
|
|
|
cd $outputdir
|
|
rsync -av -n * docs@docs.yoctoproject.org:docs/
|
|
|
|
cd $ypdocs
|
|
git checkout master
|
|
make clean
|
|
make publish
|
|
mv ./_build/html/* $outputdir
|
|
|
|
cd $ypdocs
|
|
git checkout transition
|
|
make clean
|
|
make publish
|
|
cp -r ./_build/final/* $outputdir/
|
|
|
|
cd $ypdocs
|
|
git checkout master-next
|
|
make clean
|
|
make publish
|
|
mkdir $outputdir/next
|
|
mv ./_build/html/* $outputdir/next
|
|
|
|
cd $ypdocs
|
|
git checkout gatesgarth
|
|
make clean
|
|
make publish
|
|
mkdir $outputdir/gatesgarth
|
|
mv ./_build/html/* $outputdir/gatesgarth
|
|
|
|
#git checkout dunfell
|
|
#make clean
|
|
#make publish
|
|
#mkdir $outputdir/3.1
|
|
#mv ./_build/html/* $outputdir/3.1
|
|
|
|
# Update switchers.js with the copy from master ypdocs
|
|
cd $outputdir
|
|
find . -name switchers.js -not -path ./_static/switchers.js -exec cp ./_static/switchers.js {} \;
|
|
|
|
cd $outputdir
|
|
rsync -av -n * docs@docs.yoctoproject.org:docs/
|