add check that that extension module is compiled before running example scripts
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/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 <<EOF
|
cat > example.java <<EOF
|
||||||
public class example {
|
public class example {
|
||||||
static {
|
static {
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -f lualammps.so ]
|
||||||
|
then \
|
||||||
|
echo "Need to compile 'lualammps.so' first for this script to work"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cat > example.lua <<EOF
|
cat > example.lua <<EOF
|
||||||
require("lualammps")
|
require("lualammps")
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/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
|
cat > example.pl <<EOF
|
||||||
use pllammps;
|
use pllammps;
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -f _pylammps.so ]
|
||||||
|
then \
|
||||||
|
echo "Need to compile '_pylammps.so' first for this script to work"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cat > example.py <<EOF
|
cat > example.py <<EOF
|
||||||
from pylammps import *
|
from pylammps import *
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -f rubylammps.so ]
|
||||||
|
then \
|
||||||
|
echo "Need to compile 'rubylammps.so' first for this script to work"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cat > example.rb <<EOF
|
cat > example.rb <<EOF
|
||||||
require 'rubylammps'
|
require 'rubylammps'
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if [ ! -f tcllammps.so ]
|
||||||
|
then \
|
||||||
|
echo "Need to compile 'tcllammps.so' first for this script to work"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
cat > example.tcl <<EOF
|
cat > example.tcl <<EOF
|
||||||
load ./tcllammps.so
|
load ./tcllammps.so
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user