Hello Waldek, Le sam. 29 juil. 2023 à 20:32, Waldek Hebisch <[email protected]> a écrit : > [snippet] > > What about putting the FriCAS version on the first line whether or not > > X is supported? > > Version information is printed by FriCASsys. The messages you see > are warnings from fricas script. If they appear at all they will > appear before startup of FriCASsys.
>From the fricas script it appears to me that version information,
FRICAS environment variable and so on are prepended to src/etc/fricas.
They are determined at configure time with the different possible
options, so I would suggest moving the part that checks viewman and
hyperdoc at the end of the script. Moreover, errors in parameters to
the fricas script, displaying help or version messages should not let
the user be aware of the unavailability of those binaries. Below is a
simple patch that moves to the end of the fricas script this part. I
put it before the '-nogo' option in such a way that showing what would
be executed displays this unavailability if this is the case.
$ cat fricas.diff
--- src/etc/fricas.old 2023-07-30 15:05:09.551404486 +0200
+++ src/etc/fricas 2023-07-30 15:20:29.491405181 +0200
@@ -128,17 +128,6 @@
otheropts=""
-if [ ! -f $FRICAS/lib/viewman ] ; then
- echo "viewman not present, disabling graphics"
- otheropts="-nogr"
-fi
-
-if [ ! -f $FRICAS/bin/hypertex ]; then
- echo "hypertex not present, disabling"
- otheropts="$otheropts -noht"
-fi
-
-
while [ "$*" != "" ] ; do
opt=$1
case $1 in
@@ -226,7 +215,15 @@
ciao
fi
-# 6. Start processes
+if [ ! -f $FRICAS/lib/viewman ] ; then
+ echo "viewman not present, disabling graphics"
+ otheropts="-nogr $otheropts"
+fi
+
+if [ ! -f $FRICAS/bin/hypertex ]; then
+ echo "hypertex not present, disabling"
+ otheropts="-noht $otheropts"
+fi
if [ $go = no ] ; then
echo "Would now execute the following."
@@ -236,4 +233,6 @@
exit 0
fi
+# 6. Start processes
+
eval "exec $FRICAS/bin/sman $otheropts -ws $serverws"
=====================================================
Regards,
__
Greg
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/CAHnU2dZSAO4QWRo4FqSmAf_4a5sVXMGLFzi9kV92ragWK9guVA%40mail.gmail.com.
fricas.diff
Description: Binary data
