From 71e3224eb3fe684c9519d42a0f790531403cb056 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 5 Dec 2000 22:39:59 +0000 Subject: [PATCH] Added build tools. --- build/Makefile | 1 + build/mergedeps | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 build/Makefile create mode 100755 build/mergedeps 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; -- 2.39.5