[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.
This commit is contained in:
M Joonas Pihlaja 2009-09-02 04:09:46 +01:00
parent b509b548b1
commit c87b366bfe
2 changed files with 12 additions and 2 deletions

View file

@ -1,4 +1,9 @@
#!/bin/sh #! /bin/sh
if test $# == 0; then
echo "$0: no input files." >&2
exit 0
fi
cat <<HERE cat <<HERE
/* WARNING: Autogenerated file - see $0! */ /* WARNING: Autogenerated file - see $0! */

View file

@ -1,4 +1,9 @@
#!/bin/sh #! /bin/sh
if test $# == 0; then
echo "$0: no input files." >&2
exit 0
fi
cat <<HERE cat <<HERE
/* WARNING: Autogenerated file - see $0! */ /* WARNING: Autogenerated file - see $0! */