Aside from being a bit tortured, the previous approach, using tr -C,
didn't work on NetBSD.
Thanks to Greg Troxel for reporting the problem and testing the fix.
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cd lib/bup && \
LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)" "$(bup_python)" csetup.py build
# Make sure there's just the one file we expect before we copy it.
- find lib/bup/build/* -maxdepth 1 -name '_helpers*$(SOEXT)' -print0 \
- | tr -C -d '\000' | wc -c | xargs test 1 -eq
+ "$(bup_python)" -c \
+ "import glob; assert(len(glob.glob('lib/bup/build/*/_helpers*$(SOEXT)')) == 1)"
cp lib/bup/build/*/_helpers*$(SOEXT) "$@"
lib/bup/_checkout.py: