File: build_manuals_mcstas

package info (click to toggle)
mccode 3.5.19%2Bds5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,113,256 kB
  • sloc: ansic: 40,697; python: 25,137; yacc: 8,438; sh: 5,405; javascript: 4,596; lex: 1,632; cpp: 742; perl: 296; lisp: 273; makefile: 226; fortran: 132
file content (21 lines) | stat: -rwxr-xr-x 672 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env bash
export CMAKE_BUILD_PARALLEL_LEVEL=${CMAKE_BUILD_PARALLEL_LEVEL:-$(python3 -c "import os;print(os.cpu_count())")}

if [ "x$1" = "x" ]; then
    # No arguments
    echo Please provide one argument,e.g : $0 2.0
    exit 1;
fi

# Ensure our 3rd party modules are in place and updated

./3rdparty/sync.sh

./mkdist mcstas-manuals $1 doc/manuals/mcstas/ "" noarch "o" -- NONE 
echo
echo LaTeX build of McStas manuals v $1 done!
echo
cp dist/mcstas-manuals-$1-noarch-not-packaged.work/*pdf docpkg/manuals/mcstas
echo
echo Consider doing a git commit for the PDF files in docpkg/manuals/mcstas, as these have now been updated:
git status docpkg/manuals/mcstas