File: polymakeLegacy

package info (click to toggle)
gap-hap 1.66%2Bds-1
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 55,348 kB
  • sloc: xml: 15,368; sh: 216; javascript: 155; makefile: 126; ansic: 57; perl: 36
file content (26 lines) | stat: -rwxr-xr-x 514 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


file=$1;

if [ $# == 2 ]   
then
  opt1=$2;
  polymake "my \$c=load(\"$file\");  print \"$opt1\n\", \$c->$opt1, \"\n\n\";" ;
fi

if [ $# == 3 ]
then
  opt1=$2;
  opt2=$3;
  polymake "my \$c=load(\"$file\");  print \"$opt1\n\", \$c->$opt1, \"\n\n\", \"$opt2\n\", \$c->$opt2,  \"\n\n\";" ;
fi

if [ $# == 4 ]
then
  opt1=$2;
  opt2=$3;
  opt3=$4;
  polymake "my \$c=load(\"$file\");  print \"$opt1\n\", \$c->$opt1, \"\n\n\", \"$opt2\n\", \$c->$opt2,  \"\n\n\", \"$opt3\n\", \$c->$opt3, \"\n\n\" ;"
fi