mergerfs/tools/cppfind
2017-06-02 11:25:25 -04:00

9 lines
213 B
Bash
Executable File

#!/bin/sh
CXX="${CXX:-c++}"
FUSE_CFLAGS="-Ilibfuse/include -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=29"
echo "#include <fuse.h>" | ${CXX} -E ${FUSE_CFLAGS} - | grep "${1}" > /dev/null
[ "$?" != "0" ]; echo $?