]> arthur.barton.de Git - bup.git/blobdiff - Makefile
Makefile: don't rely on head -n -1
[bup.git] / 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 "$@"