]> arthur.barton.de Git - bup.git/blobdiff - Makefile
bup: make sure stdout and stderr are binary for subcmds
[bup.git] / Makefile
index 560652b17a8724e580b8625e99869fd50e282c04..9f111000c06da7997c7f1b9fb88d1e61c6ef696a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -146,6 +146,7 @@ runtests: runtests-python runtests-cmdline
 python_tests := \
   lib/bup/t/tbloom.py \
   lib/bup/t/thashsplit.py \
+  lib/bup/t/tindex.py \
   lib/bup/t/toptions.py \
   lib/bup/t/tshquote.py \
   lib/bup/t/tvint.py \
@@ -156,7 +157,6 @@ ifeq "2" "$(bup_python_majver)"
     lib/bup/t/tclient.py \
     lib/bup/t/tgit.py \
     lib/bup/t/thelpers.py \
-    lib/bup/t/tindex.py \
     lib/bup/t/tmetadata.py \
     lib/bup/t/tresolve.py \
     lib/bup/t/tvfs.py
@@ -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 "$@"