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 34 34 .SUFFIXES: .pl .1 .src 35 35 36 36 .src.pl: 37 sed -e '/^=head1/,/^=cut/d' \37 LANG="C" sed -e '/^=head1/,/^=cut/d' \ 38 38 -e '/^__END__/,$$d' \ 39 39 -e 's|\@PATH_PERL\@|$(PATH_PERL)|g' \ 40 40 -e 's|\@INSTALLPRIVLIB\@|$(INSTALLPRIVLIB)|g' \ -
wml-2.0.11/wml_aux/freetable//Makefile.in
old new 18 18 .SUFFIXES: .pl .1 .src 19 19 20 20 .src.pl: 21 sed -e 's|\@PATH_PERL\@|$(PATH_PERL)|g' \21 LANG="C" sed -e 's|\@PATH_PERL\@|$(PATH_PERL)|g' \ 22 22 <$< >$@ && chmod a+x $@ 23 23 24 24 .src.1: -
wml-2.0.11/wml_backend/p2_mp4h/doc/Makefile.in
old new 275 275 for i in $$list; do \ 276 276 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ 277 277 else file=$$i; fi; \ 278 ext=`echo $$i | sed -e 's/^.*\\.//'`; \278 ext=`echo $$i | LANG="C" sed -e 's/^.*\\.//'`; \ 279 279 case "$$ext" in \ 280 280 1*) ;; \ 281 281 *) ext='1' ;; \ 282 282 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; \ 286 286 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ 287 287 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \ 288 288 done … … 296 296 esac; \ 297 297 done; \ 298 298 for i in $$list; do \ 299 ext=`echo $$i | sed -e 's/^.*\\.//'`; \299 ext=`echo $$i | LANG="C" sed -e 's/^.*\\.//'`; \ 300 300 case "$$ext" in \ 301 301 1*) ;; \ 302 302 *) ext='1' ;; \ 303 303 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; \ 307 307 echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \ 308 308 rm -f "$(DESTDIR)$(man1dir)/$$inst"; \ 309 309 done … … 315 315 316 316 317 317 distdir: $(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'`; \ 320 320 list='$(DISTFILES)'; for file in $$list; do \ 321 321 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)/|"`;; \ 324 324 esac; \ 325 325 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,/[^/]*$$,,'`; \ 327 327 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 328 328 dir="/$$dir"; \ 329 329 $(mkdir_p) "$(distdir)$$dir"; \ … … 452 452 453 453 mp4h.pod: mp4h.mp4h pod.out $(PROGRAM) $(DEPS) 454 454 $(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' > $@ 456 456 457 457 mp4h.texi: mp4h.mp4h texinfo.out $(PROGRAM) $(DEPS) 458 458 $(PROGRAM) $(FLAGS) -D format=texinfo -D info:gentoc=1 $(srcdir)/mp4h.mp4h |\ 459 grep '@remove@' | sed -e 's/@remove@//' -e 's/=LT=/</g' > mp4h.chp459 grep '@remove@' | LANG="C" sed -e 's/@remove@//' -e 's/=LT=/</g' > mp4h.chp 460 460 $(PROGRAM) $(FLAGS) -D format=texinfo $(srcdir)/mp4h.mp4h > $@ 461 461 462 462 $(PROGRAM): -
wml-2.0.11/wml_include/Makefile.in
old new 39 39 @set -e; \ 40 40 files=`echo [a-z]*.src [a-z]*/*.src`; \ 41 41 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'`; \ 44 44 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 \ 46 46 :; \ 47 47 else \ 48 48 echo "Creating $$name"; \ 49 sed -e '/^=head1/,/^=cut/d' -e '/^__END__/,$$d' \49 LANG="C" sed -e '/^=head1/,/^=cut/d' -e '/^__END__/,$$d' \ 50 50 <$$base.src >$$base.wml; \ 51 51 cp $$base.src $$name.pod; \ 52 52 pod2man --section=1 \ … … 58 58 done 59 59 60 60 sys/bootp3.src: sys/bootp3.src.in 61 sed -e 's|\@INSTALLPRIVLIB\@|$(INSTALLPRIVLIB)|g' \61 LANG="C" sed -e 's|\@INSTALLPRIVLIB\@|$(INSTALLPRIVLIB)|g' \ 62 62 -e 's|\@INSTALLARCHLIB\@|$(INSTALLARCHLIB)|g' \ 63 63 <$? >$@ 64 64 … … 66 66 @set -e; \ 67 67 files=`echo [a-z]*.wml [a-z]*/*.wml`; \ 68 68 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'`; \ 72 72 if [ ! -d "$(libdir)/include/$$dir" ]; then \ 73 73 echo "$(MKDIR) $(libdir)/include/$$dir"; \ 74 74 $(MKDIR) $(libdir)/include/$$dir; \