Skip to content

Commit

Permalink
prod: allow building without documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rhornig committed Mar 23, 2020
1 parent 3d7fa31 commit 692ba08
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 23 deletions.
1 change: 1 addition & 0 deletions releng/build-omnetpp-in-docker
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export BUILD_CORE_DISTRO=true
export BUILD_LINUX_DISTRO=true
export BUILD_WIN64_DISTRO=true
export BUILD_MACOSX_DISTRO=true
export BUILD_DOC=true
export GIT_VERSION=master

. $(dirname $0)/docker-build.sh
2 changes: 1 addition & 1 deletion releng/docker-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cd `dirname $0`/..
OMNETPP_ROOT=`pwd`

docker run --network none -v "$OMNETPP_ROOT":/root/omnetpp-repo -e what -e GIT_VERSION \
docker run --network none -v "$OMNETPP_ROOT":/root/omnetpp-repo -e what -e GIT_VERSION -e BUILD_DOC \
-e BUILD_CORE_DISTRO -e BUILD_LINUX_DISTRO -e BUILD_WIN64_DISTRO -e BUILD_MACOSX_DISTRO \
omnetpp/distrobuild:eclipse4.14-tools190729-191219 && \
docker cp $(docker ps -lq):/root/omnetpp/out/dist/ releng && \
Expand Down
47 changes: 25 additions & 22 deletions releng/makedist
Original file line number Diff line number Diff line change
Expand Up @@ -176,28 +176,31 @@ git reset

###############################
# copy the generated documentation
echo Copying generated documentation

checkfile doc/SimulationManual.pdf 'SimulationManual.pdf must exist in doc/'
checkfile doc/UserGuide.pdf 'UserGuide.pdf must exist in doc/'
checkfile doc/IDE-CustomizationGuide.pdf 'IDE-CustomizationGuide.pdf must exist in doc/'
checkfile doc/IDE-DevelopersGuide.pdf 'IDE-DevelopersGuide.pdf must exist in doc/'
checkfile doc/InstallGuide.pdf 'InstallGuide.pdf must exist in doc/'

cp -r doc/api $DISTDIR/$what-$VERSION/doc/api
cp -r doc/parsim-api $DISTDIR/$what-$VERSION/doc/parsim-api
cp -r doc/nedxml-api $DISTDIR/$what-$VERSION/doc/nedxml-api
cp -r doc/manual $DISTDIR/$what-$VERSION/doc/manual
# cp -r doc/ide-customization-guide $DISTDIR/$what-$VERSION/doc/ide-customization-guide
# cp -r doc/ide-developersguide $DISTDIR/$what-$VERSION/doc/ide-developersguide
# cp -r doc/userguide $DISTDIR/$what-$VERSION/doc/userguide
cp doc/SimulationManual.pdf $DISTDIR/$what-$VERSION/doc
cp doc/InstallGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/UserGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/IDE-CustomizationGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/IDE-DevelopersGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/IDE-Overview.pdf $DISTDIR/$what-$VERSION/doc
cp ui/ChangeLog $DISTDIR/$what-$VERSION/doc/IDE-Changes
if test -z "$BUILD_DOC"; then

echo Copying generated documentation

checkfile doc/SimulationManual.pdf 'SimulationManual.pdf must exist in doc/'
checkfile doc/UserGuide.pdf 'UserGuide.pdf must exist in doc/'
checkfile doc/IDE-CustomizationGuide.pdf 'IDE-CustomizationGuide.pdf must exist in doc/'
checkfile doc/IDE-DevelopersGuide.pdf 'IDE-DevelopersGuide.pdf must exist in doc/'
checkfile doc/InstallGuide.pdf 'InstallGuide.pdf must exist in doc/'

cp -r doc/api $DISTDIR/$what-$VERSION/doc/api
cp -r doc/parsim-api $DISTDIR/$what-$VERSION/doc/parsim-api
cp -r doc/nedxml-api $DISTDIR/$what-$VERSION/doc/nedxml-api
cp -r doc/manual $DISTDIR/$what-$VERSION/doc/manual
# cp -r doc/ide-customization-guide $DISTDIR/$what-$VERSION/doc/ide-customization-guide
# cp -r doc/ide-developersguide $DISTDIR/$what-$VERSION/doc/ide-developersguide
# cp -r doc/userguide $DISTDIR/$what-$VERSION/doc/userguide
cp doc/SimulationManual.pdf $DISTDIR/$what-$VERSION/doc
cp doc/InstallGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/UserGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/IDE-CustomizationGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/IDE-DevelopersGuide.pdf $DISTDIR/$what-$VERSION/doc
cp doc/IDE-Overview.pdf $DISTDIR/$what-$VERSION/doc
cp ui/ChangeLog $DISTDIR/$what-$VERSION/doc/IDE-Changes
fi

###############################
# copy the "ide" directory
Expand Down

0 comments on commit 692ba08

Please sign in to comment.