Bug 1399679: Use posix shell in comm-confvars.sh; r=me
authorTom Prince <mozilla@hocat.ca>
Tue, 23 Jan 2018 11:30:39 -0700
changeset 30112 5fad234e2e846377d9361f8ea500556dbf523da8
parent 30111 266495d41b7376f67e1999b769205bc6ca8e40bf
child 30113 32a25748090a38b097aa07acb39cc49227389380
push id2140
push userclokep@gmail.com
push dateMon, 12 Mar 2018 19:42:51 +0000
treeherdercomm-beta@2d485f0d3723 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1399679
Bug 1399679: 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