Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:15

0001 #!/bin/bash -l 
0002 
0003 msg=" === $FUNCNAME :"
0004 name=SCAM_test 
0005 
0006 gcc $name.cc -g -std=c++11 -lstdc++ -I.. -o /tmp/$name 
0007 [ $? -ne 0 ] && echo $msg compile error && exit 1 
0008 
0009 
0010 
0011 CAM=perspective /tmp/$name
0012 [ $? -ne 0 ] && echo $msg run error && exit 2 
0013 
0014 CAM=orthographic /tmp/$name
0015 [ $? -ne 0 ] && echo $msg run error && exit 2 
0016 
0017 CAM=0 /tmp/$name
0018 [ $? -ne 0 ] && echo $msg run error && exit 2 
0019 
0020 
0021 
0022 exit 0 
0023