mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-23 23:40:09 +01:00
[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:
parent
b509b548b1
commit
c87b366bfe
2 changed files with 12 additions and 2 deletions
|
|
@ -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! */
|
||||||
|
|
|
||||||
|
|
@ -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! */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue