From d47ee877be5d1175bdc36f2d87881ddaf875a8e9 Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Mon, 23 Jul 2018 01:56:42 +0300 Subject: Refactor http clients, fix webhook server, add more samples, change tabs to 4 spaces --- tools/list-includes | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 tools/list-includes (limited to 'tools/list-includes') diff --git a/tools/list-includes b/tools/list-includes new file mode 100755 index 0000000..5e04c1a --- /dev/null +++ b/tools/list-includes @@ -0,0 +1,19 @@ +#!/bin/bash + +if uname -a | grep Darwin > /dev/null; then + is_macos=1 +else + is_macos=0 +fi +if [[ $is_macos == 1 ]]; then + this_sed() { + gsed "$@" + } +else + this_sed() { + sed "$@" + } +fi + +cd ../include +tree -a -f --noreport -i | grep '\.h' | this_sed -r 's!^\./(.+?)$!#include "\1"!' -- cgit v1.2.3