X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Makefile;h=620f90b45b30e926a7221d04ff633ad4798eb885;hb=3306a802a11b8d;hp=1059304c8317ec1a60822505e986c9a1ede54016;hpb=31b380c47c614c1b4db4dcce14da7bbab0f4af90;p=bup.git diff --git a/Makefile b/Makefile index 1059304..620f90b 100644 --- a/Makefile +++ b/Makefile @@ -124,7 +124,10 @@ lib/bup/_helpers$(SOEXT): \ @rm -f $@ cd lib/bup && \ LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" "$(bup_python)" csetup.py build - cp lib/bup/build/*/_helpers$(SOEXT) lib/bup/ + # Make sure there's just the one file we expect before we copy it. + find lib/bup/build/* -maxdepth 1 -name '_helpers*$(SOEXT)' \ + -exec printf 'x\c' '{}' \; | wc -c | xargs test 1 -eq + cp lib/bup/build/*/_helpers*$(SOEXT) "$@" lib/bup/_checkout.py: @if grep -F '$Format' lib/bup/_release.py \