js-vdc/misc/generate_baseline.sh

17 lines
487 B
Bash
Raw Normal View History

2013-12-14 07:43:55 +00:00
#!/bin/bash
# generate_baseline.sh -- generate test baseline using mathematica
2016-01-16 18:47:42 +00:00
# Copyright (C) 2013-present SheetJS
2013-12-14 07:43:55 +00:00
# usage: $0 [base:2] [nelts:10]
MCMD=math
if [ -x /Applications/Mathematica.app/Contents/MacOS/MathKernel ]; then
MCMD=/Applications/Mathematica.app//Contents/MacOS/MathKernel
fi
SCRIPT=test_files/vdc.m
2016-01-16 18:47:42 +00:00
if [ ! -e $SCRIPT ]; then SCRIPT=misc/vdc.m; fi
2013-12-14 07:43:55 +00:00
if [ ! -e $SCRIPT ]; then SCRIPT=vdc.m; fi
$MCMD -script $SCRIPT 7 ${1:-2} ${2:-10} | awk 'NF {print $1 "\t" $2}'