aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/buildgen/generate_projects.sh
diff options
context:
space:
mode:
authorGravatar Nicolas Noble <pixel@nobis-crew.org>2015-03-15 20:05:24 -0700
committerGravatar Nicolas "Pixel" Noble <pixel@nobis-crew.org>2015-03-16 04:27:02 +0100
commitf358573091ef9c14c39ea56d9d9883410a533992 (patch)
tree74e7d4a57f255241dc5f285445157b131ce2a4d8 /tools/buildgen/generate_projects.sh
parent764971354c530598c32ca2fc133a5350283eeb57 (diff)
FreeBSD preliminary work.
-) You can't assume bash is installed. Scripts needs to be cleaned out of bashisms. -) You can't assume python is in /usr/bin. Use env instead. -) AF_INET is in sys/socket.h -) Added port_platform's basic structure for FreeBSD, based off Darwin. -) FreeBSD doesn't have and doesn't need libdl for OpenSSL.
Diffstat (limited to 'tools/buildgen/generate_projects.sh')
-rwxr-xr-xtools/buildgen/generate_projects.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/buildgen/generate_projects.sh b/tools/buildgen/generate_projects.sh
index 7a12440db2..45f08df38f 100755
--- a/tools/buildgen/generate_projects.sh
+++ b/tools/buildgen/generate_projects.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright 2015, Google Inc.
# All rights reserved.
#
@@ -31,7 +31,7 @@
set -e
-if [ "x$TEST" == "x" ] ; then
+if [ "x$TEST" = "x" ] ; then
TEST=false
fi
@@ -61,12 +61,12 @@ for dir in . ; do
out=${out%.*} # strip template extension
json_files="build.json $end2end_test_build"
data=`for i in $json_files; do echo -n "-d $i "; done`
- if [ $TEST == true ] ; then
+ if [ "x$TEST" = "xtrue" ] ; then
actual_out=$out
out=`mktemp /tmp/gentXXXXXX`
fi
$mako_renderer $plugins $data -o $out $file
- if [ $TEST == true ] ; then
+ if [ "x$TEST" = "xtrue" ] ; then
diff -q $out $actual_out
rm $out
fi