diff options
author | Andrew Shadura <andrewsh@debian.org> | 2014-01-05 22:42:41 +0100 |
---|---|---|
committer | Andrew Shadura <andrew@shadura.me> | 2015-07-25 14:44:33 +0200 |
commit | c8659b636be5e763c5dc028a5db7294b1af2648c (patch) | |
tree | 7dacf7580ff8c7d8c64682eaa28350bc47fbd56e /custom/prog_mkdep | |
parent | 004c4cd3db1d9ad252eccbc1e9e6c54ec61a2927 (diff) | |
parent | aba913436a8521abe405a04ed71388989e1d646f (diff) |
Imported Debian patch 0.25.0-1
Diffstat (limited to 'custom/prog_mkdep')
-rwxr-xr-x | custom/prog_mkdep | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/custom/prog_mkdep b/custom/prog_mkdep new file mode 100755 index 0000000..cdbea04 --- /dev/null +++ b/custom/prog_mkdep @@ -0,0 +1,35 @@ +#!/bin/sh + +############################################################ +# Copyright (c) 2013 by Aleksey Cheusov +# +# See LICENSE file in the distribution. +############################################################ + +LC_ALL=C +export LC_ALL + +extra_args="$*" + +pathpart='custom_nbmkdep' +. mkc_check_common.sh + +#trap "echo $tmpc; rm $tmpc" 0 +trap "rm -f $tmpc $tmpo" 0 + +cat > "$tmpc" <<'EOF' +#include <stdio.h> +EOF + +check_mkdep (){ + "$1" -f "$tmpo" $extra_args -I . -I `pwd` "$tmpc" +} + +for i in bmkdep nbmkdep mkdep; do + if test -z "`check_mkdep $i 2>&1 > /dev/null`"; then + mkc_which $i + exit 0 + fi +done + +echo '' |