File:  [Research Unix] / researchv10no / cmd / mk / export / mkconv
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:34 2018 UTC (8 years, 1 month ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Norman

x=/tmp/mk$$
trap 'rm -f $x' 0 1 2
tee $x < $1 | sed -e 's/$(\([^)]*\))\([        :\/]\)/$\1\2/g
	s/$(\([^)]*\))$/$\1/g
	s/$(\([^)]*\))/${\1}/g
	s/^     @/  /
	/^	-/,/[^\\]$/{
		/[^\\]$/s/$/; set -e/
	}
	/^	-/s/	-/	set +e; /
	s/:&/:/
	s/$% /$stem /g
	s/$%\./$stem\./g
	s/$%/${stem}/g
	s/$@/${target}/g
	s/$^/${prereq}/g
	s/$?/$newprereq/g'
if egrep -s 'cd[ 	]|make' < $x
then
	echo "Warning: recipes containing \`cd' or \`make' need attention."
	egrep 'cd[ 	]|make' < $x
fi 1>&2

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.