Ticket #36409: patch-fix_sed.diff

File patch-fix_sed.diff, 5.8 KB (added by hahn.seb@…, 12 years ago)
  • wml-2.0.11/wml_backend/p6_asubst/Makefile.in

    old new  
    3434.SUFFIXES: .pl .1 .src
    3535
    3636.src.pl:
    37         sed -e '/^=head1/,/^=cut/d' \
     37        LANG="C" sed -e '/^=head1/,/^=cut/d' \
    3838        -e '/^__END__/,$$d' \
    3939        -e 's|\@PATH_PERL\@|$(PATH_PERL)|g' \
    4040        -e 's|\@INSTALLPRIVLIB\@|$(INSTALLPRIVLIB)|g' \
  • wml-2.0.11/wml_aux/freetable//Makefile.in

    old new  
    1818.SUFFIXES: .pl .1 .src
    1919
    2020.src.pl:
    21         sed -e 's|\@PATH_PERL\@|$(PATH_PERL)|g' \
     21        LANG="C" sed -e 's|\@PATH_PERL\@|$(PATH_PERL)|g' \
    2222          <$< >$@ && chmod a+x $@
    2323
    2424.src.1:
  • wml-2.0.11/wml_backend/p2_mp4h/doc/Makefile.in

    old new  
    275275        for i in $$list; do \
    276276          if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
    277277          else file=$$i; fi; \
    278           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
     278          ext=`echo $$i | LANG="C" sed -e 's/^.*\\.//'`; \
    279279          case "$$ext" in \
    280280            1*) ;; \
    281281            *) ext='1' ;; \
    282282          esac; \
    283           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
    284           inst=`echo $$inst | sed -e 's/^.*\///'`; \
    285           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
     283          inst=`echo $$i | LANG="C" sed -e 's/\\.[0-9a-z]*$$//'`; \
     284          inst=`echo $$inst | LANG="C" sed -e 's/^.*\///'`; \
     285          inst=`echo $$inst | LANG="C" sed '$(transform)'`.$$ext; \
    286286          echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
    287287          $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
    288288        done
     
    296296          esac; \
    297297        done; \
    298298        for i in $$list; do \
    299           ext=`echo $$i | sed -e 's/^.*\\.//'`; \
     299          ext=`echo $$i | LANG="C" sed -e 's/^.*\\.//'`; \
    300300          case "$$ext" in \
    301301            1*) ;; \
    302302            *) ext='1' ;; \
    303303          esac; \
    304           inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
    305           inst=`echo $$inst | sed -e 's/^.*\///'`; \
    306           inst=`echo $$inst | sed '$(transform)'`.$$ext; \
     304          inst=`echo $$i | LANG="C" sed -e 's/\\.[0-9a-z]*$$//'`; \
     305          inst=`echo $$inst | LANG="C" sed -e 's/^.*\///'`; \
     306          inst=`echo $$inst | LANG="C" sed '$(transform)'`.$$ext; \
    307307          echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
    308308          rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
    309309        done
     
    315315
    316316
    317317distdir: $(DISTFILES)
    318         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
    319         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
     318        @srcdirstrip=`echo "$(srcdir)" | LANG="C" sed 's|.|.|g'`; \
     319        topsrcdirstrip=`echo "$(top_srcdir)" | LANG="C" sed 's|.|.|g'`; \
    320320        list='$(DISTFILES)'; for file in $$list; do \
    321321          case $$file in \
    322             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
    323             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
     322            $(srcdir)/*) file=`echo "$$file" | LANG="C" sed "s|^$$srcdirstrip/||"`;; \
     323            $(top_srcdir)/*) file=`echo "$$file" | LANG="C" sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
    324324          esac; \
    325325          if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
    326           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
     326          dir=`echo "$$file" | LANG="C" sed -e 's,/[^/]*$$,,'`; \
    327327          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
    328328            dir="/$$dir"; \
    329329            $(mkdir_p) "$(distdir)$$dir"; \
     
    452452
    453453mp4h.pod: mp4h.mp4h pod.out $(PROGRAM) $(DEPS)
    454454        $(PROGRAM) $(FLAGS) -D format=pod $(srcdir)/mp4h.mp4h \
    455         | sed -e 's/_LT_/</g' -e 's/_GT_/>/g' > $@
     455        | LANG="C" sed -e 's/_LT_/</g' -e 's/_GT_/>/g' > $@
    456456
    457457mp4h.texi: mp4h.mp4h texinfo.out $(PROGRAM) $(DEPS)
    458458        $(PROGRAM) $(FLAGS) -D format=texinfo -D info:gentoc=1 $(srcdir)/mp4h.mp4h |\
    459    grep '@remove@' | sed -e 's/@remove@//' -e 's/=LT=/</g' > mp4h.chp
     459   grep '@remove@' | LANG="C" sed -e 's/@remove@//' -e 's/=LT=/</g' > mp4h.chp
    460460        $(PROGRAM) $(FLAGS) -D format=texinfo $(srcdir)/mp4h.mp4h > $@
    461461
    462462$(PROGRAM):
  • wml-2.0.11/wml_include/Makefile.in

    old new  
    3939        @set -e; \
    4040        files=`echo [a-z]*.src [a-z]*/*.src`; \
    4141        for file in $$files; do \
    42             base=`echo $$file | sed -e 's/\.src$$//g'`; \
    43             name=`echo wml/$$base | sed -e 's/\//$(DCOLON)/g'`; \
     42            base=`echo $$file | LANG="C" sed -e 's/\.src$$//g'`; \
     43            name=`echo wml/$$base | LANG="C" sed -e 's/\//$(DCOLON)/g'`; \
    4444            if ls -1t $$base.wml $$base.src 2>/dev/null \
    45                | sed 1q | grep "^$$base.wml\$$" >/dev/null 2>&1; then \
     45               | LANG="C" sed 1q | grep "^$$base.wml\$$" >/dev/null 2>&1; then \
    4646                :; \
    4747            else \
    4848                echo "Creating $$name"; \
    49                 sed -e '/^=head1/,/^=cut/d' -e '/^__END__/,$$d' \
     49                LANG="C" sed -e '/^=head1/,/^=cut/d' -e '/^__END__/,$$d' \
    5050                   <$$base.src >$$base.wml; \
    5151                cp $$base.src $$name.pod; \
    5252                pod2man --section=1 \
     
    5858        done
    5959
    6060sys/bootp3.src: sys/bootp3.src.in
    61         sed -e 's|\@INSTALLPRIVLIB\@|$(INSTALLPRIVLIB)|g' \
     61        LANG="C" sed -e 's|\@INSTALLPRIVLIB\@|$(INSTALLPRIVLIB)|g' \
    6262            -e 's|\@INSTALLARCHLIB\@|$(INSTALLARCHLIB)|g' \
    6363            <$? >$@
    6464
     
    6666        @set -e; \
    6767        files=`echo [a-z]*.wml [a-z]*/*.wml`; \
    6868        for file in $$files; do \
    69             base=`echo $$file | sed -e 's/\.wml$$//g'`; \
    70             dir=`echo $$file | sed -e 's/[a-zA-Z0-9_]*.wml$$//g'`; \
    71             name=`echo wml/$$base | sed -e 's/\//$(DCOLON)/g'`; \
     69            base=`echo $$file | LANG="C" sed -e 's/\.wml$$//g'`; \
     70            dir=`echo $$file | LANG="C" sed -e 's/[a-zA-Z0-9_]*.wml$$//g'`; \
     71            name=`echo wml/$$base | LANG="C" sed -e 's/\//$(DCOLON)/g'`; \
    7272            if [ ! -d "$(libdir)/include/$$dir" ]; then \
    7373                echo "$(MKDIR) $(libdir)/include/$$dir"; \
    7474                $(MKDIR) $(libdir)/include/$$dir; \