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

index 9a3a76a2fdcafd1a3058ded21cc74a1a262642d3..b4372719d22839221663bd4ce279ac415bfb8ec5 100644 (file)
@@ -144,7 +144,8 @@ lego_stack.png: images/lego_stack.svg
 
 # 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