blob: 8a6a3c1f41d51eb6e608ad6b5ec16b06145cc588 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
$NetBSD: patch-aa,v 1.7 2006/04/14 09:59:54 jmmv Exp $
--- Makefile.in.orig 2006-04-09 04:46:33.000000000 +0200
+++ Makefile.in
@@ -8328,10 +8328,9 @@ monotone.html: monotone.texi version.tex
cp $(srcdir)/texinfo.css .; \
fi
makeinfo -I $(srcdir) --no-split --no-headers --output $@ --html $<
- perl -i.perlbak -pe 's@<head>@<head>\n<link type="text/css" rel="stylesheet" href="texinfo.css" />@' $@
- rm -f $@.perlbak
-
-# The .perlbak thing is needed, otherwise the perl executions fails on MinGW
+ cp $@ $@.bak
+ sed -e 's,<head>,<head><link type="text/css" rel="stylesheet" href="texinfo.css" />,' $@.bak >$@
+ rm -f $@.bak
html: monotone.texi version.texi std_hooks.lua texinfo.css
if $(CHECK_SRCDIR_EQ_BUILDDIR); then :; else \
@@ -8341,8 +8340,11 @@ html: monotone.texi version.texi std_hoo
cp -r $(srcdir)/figures $@
cp $(srcdir)/texinfo.css $@
makeinfo -I $(srcdir) --number-sections --html --output $@ $<
- perl -i.perlbak -pe 's@<head>@<head>\n<link type="text/css" rel="stylesheet" href="texinfo.css" />@' $@/*.html
- rm -f $@/*.perlbak
+ for f in $@/*.html; do \
+ cp $$f $$f.bak; \
+ sed -e 's,<head>,<head><link type="text/css" rel="stylesheet" href="texinfo.css" />,' $$f.bak >$$f; \
+ rm -f $$f.bak; \
+ done
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
|