From: Martin Mares Date: Tue, 5 Dec 2000 22:39:59 +0000 (+0000) Subject: Added build tools. X-Git-Tag: holmes-import~1621 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;ds=sidebyside;h=71e3224eb3fe684c9519d42a0f790531403cb056;p=libucw.git Added build tools. --- diff --git a/build/Makefile b/build/Makefile new file mode 100644 index 00000000..f33fd566 --- /dev/null +++ b/build/Makefile @@ -0,0 +1 @@ +# Makefile for Sherlock Build Tools diff --git a/build/mergedeps b/build/mergedeps new file mode 100755 index 00000000..e1c467d2 --- /dev/null +++ b/build/mergedeps @@ -0,0 +1,21 @@ +#!/usr/bin/perl + +@ARGV == 2 or die "Usage: mergedeps "; +foreach $a (@ARGV) { + open F, "$a" or next; + $t = ""; + while () { + $t .= $_; + if (! /\\$/) { + ($t =~ /^(.*):/) || die "Parse error at $t"; + $rules{$1} = $t; + $t = ""; + } + } + close F; +} +open(F,">" . $ARGV[0]) || die "Unable to write output file"; +foreach $a (sort keys %rules) { + print F $rules{$a}; +} +close F;