]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
replace " ./" by " " at line begininig for BR_V223_portmdk102
authoradam <adam>
Tue, 7 Jun 2005 14:07:06 +0000 (14:07 +0000)
committeradam <adam>
Tue, 7 Jun 2005 14:07:06 +0000 (14:07 +0000)
the dependance computation 'cause when a line
begin with
"  ./toto.hxx" (it's now the case with gcc3.4)
and $(top_builddir) is "..", the command

sed 's% $(top_builddir)/% $$(top_builddir)/%g'
becomes
sed 's% ../% $$(top_builddir)/%g'

and the "  ./" before toto.hxx is replaced by " ../"
by mystery of sed.

salome_adm/unix/depend.in

index 09a46645aa9c0dafd232ff6fbe35c95e1004a1a3..92454ed109604bd7a9a26e4de8bcb642ccfec3bd 100644 (file)
@@ -44,6 +44,7 @@ depend:.depend
                    obj=`basename $$dep .c`.lo;                               \
                    sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@;   \
                    $(CC) $(C_DEPEND_FLAG) $(CPPFLAGS) $$dep 2>/dev/null |    \
+                        sed 's%^  ./%  %g' |                                 \
                         sed 's% $(srcdir)/% $$(srcdir)/%g' |                 \
                         sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' |         \
                         sed 's% $(top_builddir)/% $$(top_builddir)/%g' |      \
@@ -54,6 +55,7 @@ depend:.depend
                    obj=`basename $$dep .cc`.lo;                              \
                    sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@;   \
                    $(CXX) $(CXX_DEPEND_FLAG) $(CXXFLAGS) $(CPPFLAGS) $$dep 2>/dev/null | \
+                        sed 's%^  ./%  %g' |                                 \
                         sed 's% $(srcdir)/% $$(srcdir)/%g' |                 \
                         sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' |         \
                         sed 's% $(top_builddir)/% $$(top_builddir)/%g' |      \
@@ -64,6 +66,7 @@ depend:.depend
                    obj=`basename $$dep .cxx`.lo;                             \
                    sed '\%^'"$$obj"':%,\%[^\\]$$%d' <$@ >$@- && mv $@- $@;   \
                    $(CXX) $(CXX_DEPEND_FLAG) $(CXXFLAGS) $(CPPFLAGS) $$dep 2>/dev/null | \
+                        sed 's%^  ./%  %g' |                                 \
                         sed 's% $(srcdir)/% $$(srcdir)/%g' |                 \
                         sed 's% $(top_srcdir)/% $$(top_srcdir)/%g' |         \
                         sed 's% $(top_builddir)/% $$(top_builddir)/%g' |      \