]> git.lyx.org Git - features.git/commitdiff
POSIX-compliant sed.
authorAngus Leeming <leeming@lyx.org>
Mon, 15 Sep 2003 08:12:13 +0000 (08:12 +0000)
committerAngus Leeming <leeming@lyx.org>
Mon, 15 Sep 2003 08:12:13 +0000 (08:12 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7743 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/xforms/ChangeLog
src/frontends/xforms/forms/fdfixc.sed
src/frontends/xforms/forms/fdfixh.sed
src/frontends/xforms/forms/tmp_str.sed

index c8a32273cebbe45ae3e73ef3b786bc4f58e8dfaf..bdffed619ef4fb012957681aaeb3702099e088b3 100644 (file)
@@ -1,3 +1,7 @@
+2003-09-15  Angus Leeming  <leeming@lyx.org>
+
+       * forms/fdfix[ch].sed, tmp_str,sed: POSIX-compliant sed.
+
 2003-09-09  Lars Gullik Bjønnes  <larsbj@lyx.org>
 
        * several files: change Assert to BOOST_ASSERT
index fb7b80de2b79898a2c796cce36a97adbd1f82e04..7137e3556f6d95c93b33c2aa6260eebf5b4346c7 100644 (file)
@@ -23,7 +23,7 @@ s/[   ]*$//
 
 
 # Remove '#include "forms.h"'. It is replace by a macro in fdfix.sh.
-/^#include \"forms\.h\"/d
+/^#include "forms\.h"/d
 
 
 # Pretty formatting; replace all leading whitespace with a tab
index b8550f9efc8e28a7b6e7b736683f6191b45b510f..6634d9703ef14382eb332954c5ac62741389b076 100644 (file)
@@ -70,7 +70,9 @@ s/extern \(.*\) create_form_form_\(.*\)[(]void[)]/\1 build_\2(void *)/
 
 # All other lines are deleted:
 /^typedef struct/d
-/^     /{ /FL_OBJECT/!d; }
+/^     /{
+/FL_OBJECT/!d
+}
 
 
 # For all lines starting with FL_OBJECT...
@@ -80,7 +82,8 @@ s/extern \(.*\) create_form_form_\(.*\)[(]void[)]/\1 build_\2(void *)/
 s/\(FL_OBJECT \*\)/\1 /
 
 # 2. Append to the hold space and delete from the pattern space.
-H; d
+H
+d
 }
 
 
@@ -95,11 +98,16 @@ struct \1 : public FD_base {/
 # 2. The hold space contains the FL_OBJECT lines, preceded by a new line.
 #    To get rid of this new line, we exchange the contents of the hold and
 #    pattern spaces, remove the new line and then exchange back.
-x; s/^\n//; x
+x
+s/^\n//
+x
 
 # 3. Paste the contents of the hold space beneath the "struct FD_xxx" line.
 #    and empty the hold space
-G; h; s/.*//; x
+G
+h
+s/.*//
+x
 
 # 4. Close the struct and append an empty line.
 a\
index 60e0fad2a16ebd9213e000f0532530b71b6177b3..992e9e65780d2e66c203954e793d77487b9e9253 100644 (file)
@@ -16,7 +16,8 @@
 
 # Initialise the hold space at the start of the function.
 / \* build_/ {
-h; d
+h
+d
 }
 
 
@@ -25,14 +26,16 @@ h; d
 
 # If it isn't the last line, append it to the hold space.
 /^}$/!{
-H; d
+H
+d
 }
 
 # If it is the last line, paste the contents of the hold space above it,
 # seach for the string "tmp_str" and, if found, add its declaration to the top
 # of the function.
 /^}$/ {
-x; G
+x
+G
 
 /tmp_str/s/\(  FL_OBJECT \*\)/ string tmp_str;\
 \1/