Bug 1432251: Use posix shell in comm-confvars.sh; r=me draft
authorTom Prince <mozilla@hocat.ca>
Tue, 23 Jan 2018 11:30:39 -0700
changeset 58267 97beafc86fddf8999d7f806a214dfbe63d46fb64
parent 58266 c05162c61c90b7a08bca925ab1adbede8de4457c
child 58268 ffda43ff3bcab95f3cea014fd286637ef3f286a3
push id5795
push usermozilla@hocat.ca
push dateTue, 23 Jan 2018 18:31:36 +0000
treeherdertry-comm-central@edab13a63b37 [default view] [failures only]
reviewersme
bugs1432251
Bug 1432251: Use posix shell in comm-confvars.sh; r=me
comm-confvars.sh
--- a/comm-confvars.sh
+++ b/comm-confvars.sh
@@ -1,24 +1,26 @@
 #!/bin/sh
 
-if [[ "$MOZ_BUILD_APP" == *comm* ]]
-then
-  # we are building with comm/ as the subdirectory
-  # $srcdir is the mozilla repo, comm is in the subdir
-  moztopsrcdir=$srcdir
-  commtopsrcdir=$srcdir/comm
+case "$MOZ_BUILD_APP" in
+  *comm*)
+    # we are building with comm/ as the subdirectory
+    # $srcdir is the mozilla repo, comm is in the subdir
+    moztopsrcdir=$srcdir
+    commtopsrcdir=$srcdir/comm
 
-  mozreltopsrcdir=.
-  commreltopsrcdir=comm
+    mozreltopsrcdir=.
+    commreltopsrcdir=comm
 
-  commtopobjdir=$_objdir/comm
-else
-  # we are building with mozilla/ as the subdirectory
-  # $srcdir is still the mozilla repo, so use the parent for comm
-  moztopsrcdir=$srcdir
-  commtopsrcdir=$srcdir/..
+    commtopobjdir=$_objdir/comm
+    ;;
+  *)
+    # we are building with mozilla/ as the subdirectory
+    # $srcdir is still the mozilla repo, so use the parent for comm
+    moztopsrcdir=$srcdir
+    commtopsrcdir=$srcdir/..
 
-  mozreltopsrcdir=mozilla
-  commreltopsrcdir=.
+    mozreltopsrcdir=mozilla
+    commreltopsrcdir=.
 
-  commtopobjdir=$_objdir
-fi
+    commtopobjdir=$_objdir
+    ;;
+esac