diff libinterp/dldfcn/config-module.sh @ 21281:b76955e83fe4

maint: Run all build shell scripts with SHELL as command interpreter * Makefile.am, common.mk, doc/module.mk, libinterp/corefcn/module.mk, libinterp/module.mk, libinterp/octave-value/module.mk, libinterp/operators/module.mk, liboctave/module.mk, scripts/module.mk, test/module.mk: Use $(SHELL) variable as command interpreter for all build helper shell scripts. * config-images.sh, config-module.sh, config-ops.sh: Use ${SHELL} environment variable as command interpreter for move-if-change helper script.
author Mike Miller <mtmiller@octave.org>
date Tue, 16 Feb 2016 23:08:31 -0800
parents 1bca6c72d2b1
children 592fa741e0aa
line wrap: on
line diff
--- a/libinterp/dldfcn/config-module.sh	Wed Feb 17 02:54:00 2016 -0500
+++ b/libinterp/dldfcn/config-module.sh	Tue Feb 16 23:08:31 2016 -0800
@@ -3,6 +3,7 @@
 set -e
 
 AWK=${AWK:-awk}
+SHELL=${SHELL:-/bin/sh}
 
 if [ $# -eq 1 ]; then
   top_srcdir="$1"
@@ -16,4 +17,4 @@
 
 $AWK -f $dld_dir/config-module.awk < $dld_dir/module-files > $dld_dir/module.mk-t
 
-$move_if_change $dld_dir/module.mk-t $dld_dir/module.mk
+$SHELL $move_if_change $dld_dir/module.mk-t $dld_dir/module.mk