[LON-CAPA-cvs] cvs: modules /TexConvert/tthperl commands
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 14 Jul 2005 06:42:26 -0000
albertel Thu Jul 14 02:42:26 2005 EDT
Modified files:
/modules/TexConvert/tthperl commands
Log:
- compile the source if we have it otherwise just make do with the precompiled ones
Index: modules/TexConvert/tthperl/commands
diff -u modules/TexConvert/tthperl/commands:1.13 modules/TexConvert/tthperl/commands:1.14
--- modules/TexConvert/tthperl/commands:1.13 Wed Jul 13 22:04:26 2005
+++ modules/TexConvert/tthperl/commands Thu Jul 14 02:42:26 2005
@@ -1,14 +1,17 @@
dist=`perl ../../../loncom/build/distprobe`
arch=`uname -i`
-if test -f compiles/tth.so.$arch.$dist
-then
- cp compiles/tth.so.$arch.$dist tth.so
- exit 0
-fi
-if test -f compiles/tth.so.$arch
-then
- cp compiles/tth.so.$arch tth.so
- exit 0
+if test ! -f ../tthdynamic/tthfunc.c
+then
+ if test -f compiles/tth.so.$arch.$dist
+ then
+ cp compiles/tth.so.$arch.$dist tth.so
+ exit 0
+ fi
+ if test -f compiles/tth.so.$arch
+ then
+ cp compiles/tth.so.$arch tth.so
+ exit 0
+ fi
fi
if test -f /etc/redhat-release