Bo Peng wrote:
> Dear developers,
> 
> It took me a while to set up instant preview on solaris. One problem
> is that my grep does not have -E option so
> 
> grep -E 'Preview: [ST]' ${LOGFILE} > ${METRICSFILE} ||
> would fail. Deleting -E solves the problem.

Fair enough. There's nothing very extended about that regular
expression.

Jean-Marc, patch attached. It works perfectly for me.

-- 
Angus
Index: status.13x
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/Attic/status.13x,v
retrieving revision 1.1.2.182
diff -u -p -r1.1.2.182 status.13x
--- status.13x	3 May 2004 14:24:46 -0000	1.1.2.182
+++ status.13x	5 May 2004 07:49:56 -0000
@@ -28,6 +28,8 @@ What's new
 
 ** Bug fixes
 
+- Enable instant preview to work on solaris machines.
+
 
 * LaTeX output:
 
Index: lib/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/ChangeLog,v
retrieving revision 1.363.2.72
diff -u -p -r1.363.2.72 ChangeLog
--- lib/ChangeLog	3 May 2004 14:24:46 -0000	1.363.2.72
+++ lib/ChangeLog	5 May 2004 07:49:58 -0000
@@ -1,3 +1,8 @@
+2003-05-05  Angus Leeming  <[EMAIL PROTECTED]>
+
+	* scripts/lyxpreview2bitmap.sh: enable the script to work on
+	solaris machines by changing 'grep -E' to 'grep'.
+
 2004-05-03  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* layouts/scrlettr.layout: include counters.
Index: lib/scripts/lyxpreview2bitmap.sh
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/scripts/Attic/lyxpreview2bitmap.sh,v
retrieving revision 1.9.2.1
diff -u -p -r1.9.2.1 lyxpreview2bitmap.sh
--- lib/scripts/lyxpreview2bitmap.sh	10 Mar 2003 16:38:21 -0000	1.9.2.1
+++ lib/scripts/lyxpreview2bitmap.sh	5 May 2004 07:49:58 -0000
@@ -135,9 +135,9 @@ ${LATEX} ${TEXFILE} ||
 # ${METRICSFILE}.
 # This extracts lines starting "Preview: Tightpage" and
 # "Preview: Snippet".
-grep -E 'Preview: [ST]' ${LOGFILE} > ${METRICSFILE} ||
+grep 'Preview: [ST]' ${LOGFILE} > ${METRICSFILE} ||
 {
-	echo "Failed: grep -E 'Preview: [ST]' ${LOGFILE}"
+	echo "Failed: grep 'Preview: [ST]' ${LOGFILE}"
 	REQUIRED_VERSION ${LOGFILE}
 	BAIL_OUT
 }

Reply via email to