5604
authorng0 <ng0@n0.is>
Sun, 24 Feb 2019 10:13:51 +0000 (10:13 +0000)
committerng0 <ng0@n0.is>
Sun, 24 Feb 2019 10:13:51 +0000 (10:13 +0000)
doc/tutorial/Makefile.am

index fdfd49087b283d62fb7884c9d1ea3b86ef6c1b9d..d0fd14a4aa3f94c0b0b20d335a8f71bf34a6db5a 100644 (file)
@@ -86,7 +86,8 @@ DISTCLEANFILES =                                              \
 
 # XXX: is this sed invocation portable enough? otherwise try tr(1).
 version.texi/replacement: version.texi/replacement/revert
-       @sed -i "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi
+       @sed "s/GPACKAGE_VERSION/$(PACKAGE_VERSION)/g" gversion.texi > gversion.texi.tmp
+       @mv gversion.texi.tmp gversion.texi
 
 version.texi/replacement/revert:
        @echo "@set VERSION GPACKAGE_VERSION" > gversion.texi