]> arthur.barton.de Git - bup.git/commitdiff
Makefile: don't rely on head -n -1
authorRob Browning <rlb@defaultvalue.org>
Wed, 8 Jan 2020 00:07:31 +0000 (18:07 -0600)
committerRob Browning <rlb@defaultvalue.org>
Wed, 8 Jan 2020 00:12:31 +0000 (18:12 -0600)
Delete the last line with sed instead.

Thanks to Greg Troxel and Johannes Berg for reporting the portability
problem and helping with the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Makefile

index c270e97bfabf6ac6001da4841a65bce9e05e40cd..9f111000c06da7997c7f1b9fb88d1e61c6ef696a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -258,7 +258,7 @@ distcheck: all
        ./wvtest run t/test-release-archive.sh
 
 cmd/bup-python: cmd/python-cmd.sh config/config.vars Makefile
-       head -n -1 $< > "$@".$$PPID.tmp
+       sed -e '$$ d' $< > "$@".$$PPID.tmp
        printf "exec %q \"\$$@\"\n" "$(bup_python)" >> "$@".$$PPID.tmp
        chmod +x "$@".$$PPID.tmp
        mv "$@".$$PPID.tmp "$@"