]> git.lyx.org Git - lyx.git/blobdiff - development/tools/makeLyXsigc.sh
Check if we are on column 0 for special case
[lyx.git] / development / tools / makeLyXsigc.sh
index 84b436ab444747b28d47794612b92253f558901c..1fed081362094ea1949972148e9a4f65a5307e3d 100644 (file)
@@ -68,7 +68,7 @@ autoheader
 automake --add-missing --foreign
 autoconf
 EOF
-  chmod a+x autogen.sh 
+  chmod a+x autogen.sh
 )
 
 
@@ -122,7 +122,7 @@ echo "Creating custom sigc++/configure.in"
 ## Note that you have to be very careful about quoting.  Look at the second
 ## script for example: '\'', \\\ and \$
 ##
-## Now for some explanation of what each script is supposed to change: 
+## Now for some explanation of what each script is supposed to change:
 ##
 #       -e 's/\(Nelson\)/\1\
 ### Modified by makeLyXsigc.sh (Allan Rae)/'
@@ -151,12 +151,18 @@ echo "Creating custom sigc++/configure.in"
 #
 #    -e 's%\(AUX_DIR(\)scripts%\1../config%'
 #
-# Use the applications auxilliary directory. Assumed to be ../config. 
+# Use the applications auxilliary directory. Assumed to be ../config.
 #
 #    -e 's%config/\(sigc++config\.h\)%\1%'
 #
 # Move sigc++config.h out of the now removed config/.
 #
+#    -e 's/--dis\(able-threads\)/--en\1/' \
+#    -e 's;dis\(ables.*threading\);en\1;' \
+#    -e 's;\(^enable.*threads=\"\)yes;\1no;' \
+#
+# Don't use threads.
+#
 #    -e '/.*\.spec.*/d' \
 #    -e '\%.*sigc++/Makefile.*%d' \
 #    -e '\%.*config/Makefile.*%d'
@@ -231,6 +237,9 @@ done\
 LYX_FIX_MAKEFILE_IN%' \
     -e 's%\(AUX_DIR(\)scripts%\1../config%' \
     -e 's%config/\(sigc++config\.h\)%\1%' \
+    -e 's/--dis\(able-threads\)/--en\1/' \
+    -e 's;dis\(ables.*threading\);en\1;' \
+    -e 's;\(^enable.*threads=\"\)yes;\1no;' \
     -e '/.*\.spec.*/d' \
     -e '\%.*sigc++/Makefile.*%d' \
     -e '\%.*config/Makefile.*%d' \
@@ -303,6 +312,12 @@ echo "Modifying sigc++/Makefile.am"
 #
 # We don't want the extra bits that libsigc++ does.
 #
+#    -e 's/\(libsigc_la_SOURCES=\)\(.*\)/\1 $(BUILT_SOURCES)\2/' \
+#    -e '/%.h:/i\
+#Makefile: $(BUILT_SOURCES)\
+#'
+# Make sure the built sources are built.
+#
 ( cd $package/sigc++;
   sed < Makefile.am > Makefile.tmp \
     -e 's%\(SUBDIRS =\)\(.*\)config\(.*\)%\1\2\3\
@@ -318,7 +333,11 @@ ETAGS_ARGS = --lang=c++%' \
     -e 's/\(LTLIB\)/noinst_\1/' \
     -e '/EXTRA_DIST.*/d' \
     -e 's/-version-info.*ION)//' \
-    -e 's/-release.*EASE)//';
+    -e 's/-release.*EASE)//' \
+    -e 's/\(libsigc_la_SOURCES=\)\(.*\)/\1 $(BUILT_SOURCES)\2/' \
+    -e '/%.h:/i\
+Makefile: $(BUILT_SOURCES)\
+';
   rm -f Makefile.am ;
   mv Makefile.tmp Makefile.am )
 
@@ -360,6 +379,7 @@ sigc-config
 stamp*
 sigc++config.h
 sigc++config.h.in
+acinclude.m4
 EOF
 )