File: build-unlimited-api.sh

package info (click to toggle)
pycxx 7.1.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,284 kB
  • sloc: cpp: 6,767; python: 1,138; sh: 85; ansic: 60; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 583 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -x
set -e
set -o pipefail

PYTHON=${1? python exe}
shift 1

case "$( uname )" in
Darwin)
    OS=macosx
    ;;
Linux):
    OS=linux
    ;;
*)
    echo Unknown OS assuming Linux
    OS=linux
    ;;
esac

PYTHON_BASE=$(basename ${PYTHON})
TAG="${1}${2}${3}${4}"
${PYTHON} setup_makefile.py ${OS} tmp-${PYTHON_BASE}-unlimited-api${TAG}.mak "${@}"
make -f tmp-${PYTHON_BASE}-unlimited-api${TAG}.mak clean 2>&1 | tee tmp-${PYTHON_BASE}-unlimited-api${TAG}.log
make -f tmp-${PYTHON_BASE}-unlimited-api${TAG}.mak test 2>&1 | tee -a tmp-${PYTHON_BASE}-unlimited-api${TAG}.log