add check that that extension module is compiled before running example scripts

This commit is contained in:
Axel Kohlmeyer
2020-10-20 18:29:43 -04:00
parent 7db669df40
commit fe7628f954
6 changed files with 36 additions and 0 deletions

View File

@ -1,5 +1,11 @@
#!/bin/sh
if [ ! -f pllammps.so ]
then \
echo "Need to compile 'pllammps.so' first for this script to work"
exit 1
fi
cat > example.pl <<EOF
use pllammps;