--- loncom/homework/caparesponse/commands 2003/07/01 17:57:08 1.14 +++ loncom/homework/caparesponse/commands 2015/04/05 16:47:27 1.15 @@ -52,4 +52,9 @@ cp Makefile.PL Makefile.pl perl Makefile.PL make -f Makefile cp blib/arch/auto/capa/capa.so . -perl capa.pm +perl capa.pm +swigver=`swig -version | perl -ne 'print $1 if /SWIG Version (\d+)\./i'` +if [[ $swigver > 2 ]] +then + echo -n "" > capa.bs +fi