diff options
author | imp <imp@FreeBSD.org> | 2014-02-27 21:46:31 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-02-27 21:46:31 +0000 |
commit | db4b3717cfd3ba17b40dae57a2f327e91f831bf8 (patch) | |
tree | ff6e99cffa59c3e85a311d8dd06e6f6dab4988b2 /scripts/basic/fixdep | |
download | FreeBSD-src-db4b3717cfd3ba17b40dae57a2f327e91f831bf8.zip FreeBSD-src-db4b3717cfd3ba17b40dae57a2f327e91f831bf8.tar.gz |
Move to dist, per layout standards
Diffstat (limited to 'scripts/basic/fixdep')
-rwxr-xr-x | scripts/basic/fixdep | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/basic/fixdep b/scripts/basic/fixdep new file mode 100755 index 0000000..cc412be --- /dev/null +++ b/scripts/basic/fixdep @@ -0,0 +1,27 @@ +#!/bin/sh + +# Simplfied version of Linux scripts/basic/fixdep. We don't need +# CONFIG tracking etc for this usecase. + + +# Fixdep's interface is described: + +# It is invoked as +# +# fixdep <depfile> <target> <cmdline> +# +# and will read the dependency file <depfile> +# +# The transformed dependency snipped is written to stdout. +# +# It first generates a line +# +# cmd_<target> = <cmdline> +# +# and then basically copies the .<target>.d file to stdout, in the +# process filtering out the dependency on autoconf.h and adding +# dependencies on include/config/my/option.h for every +# CONFIG_MY_OPTION encountered in any of the prequisites. + +echo cmd_$2 = $3 +cat $1 |