From: Trevor Woerner <[email protected]> Provide preconditions for some of the functions in build.sh script.
Signed-off-by: Trevor Woerner <[email protected]> --- build.sh | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/build.sh b/build.sh index 07cdea0..5be2337 100755 --- a/build.sh +++ b/build.sh @@ -174,6 +174,12 @@ checkfortars() { # 0 - good # 1 - bad clone() { + # preconds + if [ X"$1" = X ]; then + echo "clone() required argument \$1 missing" + return 1 + fi + case $1 in "pixman") BASEDIR="" @@ -218,6 +224,12 @@ clone() { process() { local rtn + # preconds + if [ X"$1" = X ]; then + echo "process() required argument \$1 missing" + return 1 + fi + module_title $1 $2 SRCDIR="" -- 1.7.3.1.45.g9855b _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
