Bug#501755: oocalc/writer/etc won't start. unexpected token `fi' on line 367 of soffice
Package: openoffice.org-common
Version: 1:2.4.1-10
$ oocalc
javaldx failed!
/usr/lib/openoffice/program/soffice: line 367: syntax error near unexpected token `fi'
/usr/lib/openoffice/program/soffice: line 367: `fi'
problem is due to mistaken use of 'fi' to terminate a for/do loop rather
than 'done'.
trivial patch included:
--- soffice.orig 2008-10-10 14:49:26.435887000 +1100
+++ soffice 2008-10-10 14:50:26.935887813 +1100
@@ -364,7 +364,7 @@
if [ "$arg" = "-nologo" -o "$arg" = "-no-oosplash" ]; then
no_oosplash=y
fi
-fi
+done
if [ "$sd_binary" = "soffice.bin" -a -x "$sd_prog/oosplash.bin" ] && [ "$no_oosplash" != "y" ] ; then
sd_binary="oosplash.bin"
fi
craig
--
craig sanders <cas@taz.net.au>
Reply to: