/usr/lib/neuron/bin/nrnocmodl is in neuron-dev 7.5-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | #!/bin/sh
prefix=/usr
exec_prefix=/usr/lib/neuron
bindir=${exec_prefix}/bin
libdir=${prefix}/lib/x86_64-linux-gnu
LIBOBJDIR=${libdir}
MAKEFILEDIR=${bindir}
ARCH=x86_64
MODSUBDIR=x86_64
if [ ! -d $MODSUBDIR ]
then
echo "Creating $MODSUBDIR directory for .o files."
echo
mkdir $MODSUBDIR
fi
if test $# -gt 0 ; then
files=$*
else
files=`echo *.mod`
fi
files=`echo "$files" | sed s/\.mod//g`
if test "$files" = '*' ; then
files=""
fi
cd $MODSUBDIR
for i in $files; do
rm -f $i.mod
ln -s ../$i.mod .
done
MODOBJS=
if [ `echo "\n"` ]
then
newline="\n"
else
newline="\\\\n"
fi
echo '#include <stdio.h>
#include "hocdec.h"
modl_reg(){
NOT_PARALLEL_SUB(fprintf(stderr, "Additional mechanisms from files'$newline'");)
' > mod_func.c
for i in $files
do
echo 'NOT_PARALLEL_SUB(fprintf(stderr," '$i'.mod");)' >>mod_func.c
done
echo 'NOT_PARALLEL_SUB(fprintf(stderr, "'$newline'");)' >>mod_func.c
for i in $files
do
echo _"$i"_reg"();" >> mod_func.c
MODOBJS="$MODOBJS $i.o"
done
echo "}" >> mod_func.c
make -f $MAKEFILEDIR/nrnoc_makefile "MODOBJFILES=$MODOBJS" special &&
echo "Successfully created $MODSUBDIR/special"
|