From fe7628f954db41b9a41b4d3758b55b5ddb1becc1 Mon Sep 17 00:00:00 2001 From: Axel Kohlmeyer Date: Tue, 20 Oct 2020 18:29:43 -0400 Subject: [PATCH] add check that that extension module is compiled before running example scripts --- tools/swig/run_java_example.sh | 6 ++++++ tools/swig/run_lua_example.sh | 6 ++++++ tools/swig/run_perl_example.sh | 6 ++++++ tools/swig/run_python_example.sh | 6 ++++++ tools/swig/run_ruby_example.sh | 6 ++++++ tools/swig/run_tcl_example.sh | 6 ++++++ 6 files changed, 36 insertions(+) diff --git a/tools/swig/run_java_example.sh b/tools/swig/run_java_example.sh index c84be3527b..2f5b28bdce 100755 --- a/tools/swig/run_java_example.sh +++ b/tools/swig/run_java_example.sh @@ -1,5 +1,11 @@ #!/bin/sh +if [ ! -f libjavalammps.so ] +then \ + echo "Need to compile 'libjavalammps.so' first for this script to work" + exit 1 +fi + cat > example.java < example.lua < example.pl < example.py < example.rb < example.tcl <