From c87b366bfec4eeda2646b33cb8a33822a301456c Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Wed, 2 Sep 2009 04:09:46 +0100 Subject: [PATCH] [constructors] Guard against being called without any input files. The make-cairo-(test|boilerplate)-constructors scripts ought never to be called without arguments lest we are left constructorless. --- boilerplate/make-cairo-boilerplate-constructors.sh | 7 ++++++- test/make-cairo-test-constructors.sh | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/boilerplate/make-cairo-boilerplate-constructors.sh b/boilerplate/make-cairo-boilerplate-constructors.sh index 2c7fc85e8..dd6311178 100644 --- a/boilerplate/make-cairo-boilerplate-constructors.sh +++ b/boilerplate/make-cairo-boilerplate-constructors.sh @@ -1,4 +1,9 @@ -#!/bin/sh +#! /bin/sh + +if test $# == 0; then + echo "$0: no input files." >&2 + exit 0 +fi cat <&2 + exit 0 +fi cat <