Skip to content

Commit

Permalink
Install man pages with cantera package
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Aug 11, 2022
1 parent 67ecbc0 commit 0198de3
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cantera/build_devel.bat
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ ECHO ************************

CALL scons install

RD /S /Q "%PREFIX%/share/man"
RD /S /Q "%PREFIX%/share/cantera/samples"

ROBOCOPY "%SRC_DIR%/samples/cxx" "%PREFIX%/share/cantera/samples/cxx" /S /E
DEL /F "%PREFIX%/share/cantera/samples/cxx/SCons*"
DEL /F "%PREFIX%/share/cantera/samples/cxx/*Make*"
Expand Down
2 changes: 2 additions & 0 deletions cantera/build_devel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ set -e
${BUILD_PREFIX}/bin/python `which scons` install
set +e

rm -rf $PREFIX/share/man
rm -r $PREFIX/share/cantera/samples

mkdir -p $PREFIX/share/cantera/samples
cp -r $SRC_DIR/samples/cxx $PREFIX/share/cantera/samples/
rm $PREFIX/share/cantera/samples/cxx/SCons*
Expand Down
1 change: 0 additions & 1 deletion cantera/build_lib.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ echo "****************************"

rd /s /q %PREFIX%\share\cantera\doc
rd /s /q %PREFIX%\share\cantera\samples
rd /s /q %PREFIX%\share\man
rd /s /q %PREFIX%\Library\include\cantera
rd /s /q %PREFIX%\Scripts
del /f %PREFIX%\Library\lib\cantera.lib
Expand Down
1 change: 0 additions & 1 deletion cantera/build_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ echo "****************************"

rm -rf $PREFIX/share/cantera/doc
rm -rf $PREFIX/share/cantera/samples
rm -rf $PREFIX/share/man
rm -rf $PREFIX/include/cantera
rm -rf $PREFIX/bin
rm -rf $PREFIX/lib/pkgconfig
Expand Down
1 change: 1 addition & 0 deletions cantera/build_py.bat
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ IF ERRORLEVEL 1 EXIT 1
IF ERRORLEVEL 1 EXIT 1

ROBOCOPY "%SRC_DIR%\samples\python" "%PREFIX%\share\cantera\samples\python" /S /E
ROBOCOPY "%SRC_DIR%\platform\posix\man" "%PREFIX%\share\man\man1" /S /E

echo ****************************
echo PYTHON %PYTHON% BUILD COMPLETED SUCCESSFULLY
Expand Down
2 changes: 2 additions & 0 deletions cantera/build_py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ $PYTHON -m pip install --no-deps --no-index --find-links=build/python/dist cante

mkdir -p $PREFIX/share/cantera/samples
cp -r $SRC_DIR/samples/python $PREFIX/share/cantera/samples/
mkdir -p $PREFIX/share/man
cp -r $SRC_DIR/platform/posix/man/* $PREFIX/share/man/man1/

if [[ "$target_platform" == osx-* ]]; then
VERSION=$(echo $PKG_VERSION | cut -da -f1 | cut -db -f1 | cut -dr -f1)
Expand Down

0 comments on commit 0198de3

Please sign in to comment.