#!/usr/bin/perl -p # Usage: $0 [<].depend # Takes dependency info and generates on stdout dependencies suitable for # distribution by removing all the system include files from the list. ($h,$_)=/\s*\\/?$h.$`:("","$h\n"); s|( +/\S*)*( *)|$2?" \\\n ":""|eg;