--- loncom/homework/caparesponse/commands 2003/07/01 17:57:08 1.14 +++ loncom/homework/caparesponse/commands 2018/06/11 13:12:34 1.16 @@ -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 -I . -f capa.pm +swigver=`swig -version | perl -ne 'print $1 if /SWIG Version (\d+)\./i'` +if [[ $swigver > 2 ]] +then + echo -n "" > capa.bs +fi