File: run.sh

package info (click to toggle)
python-rjsmin 1.2.0%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,000 kB
  • sloc: javascript: 8,503; python: 2,847; ansic: 821; sh: 63; makefile: 19
file content (15 lines) | stat: -rwxr-xr-x 330 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -ex

base="$(dirname -- "${0}")"
base="$(dirname -- "$(cd "${base:-.}" && pwd)")"
cd "${base}"

pyv="$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))')"

out="${base}/bench/.out.${pyv}"
: >"${out}"


CFLAGS=-O3 pip install -vv -e .
python -OO bench/main.py -p >( cat - >>"$out" ) bench/*.js