summary refs log tree commit diff
path: root/home/.local/bin/whinclude
blob: 26445cdc464820def91f3738c541ec4164328afb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
set -eu

echo "#include <${1}>" |
cc ${CFLAGS:-} -E -x c - |
sed -En '
	/^# [0-9]+ "[^<]/{
		s/.*"([^"]+)".*/\1/p
		q
	}
'
href='/src/commit/bin/cash/Makefile?id=f87c62ae7fd6970cb9e5e2e61f4fad70c7b00d47&follow=1'>Replace cash MakefileJune McEnroe 2019-01-10Move bltin out of subdirectoryJune McEnroet'> 2019-01-10Move bltin out of subdirectoryJune McEnroe