annotate libinterp/dldfcn/config-module.sh @ 21277:1bca6c72d2b1

maint: Use consistent coding style for build helper shell scripts * mk-octave-config-h.sh: Keep if-then on a single line. * move-if-change: Insert a space in interpreter directive for consistency. * build-env-features.sh, config-images.sh, config-module.sh, config-ops.sh, find-defun-files.sh, find-files-with-tests.sh, mk-errno-list, libinterp/mk-pkg-add, scripts/mk-pkg-add, mkbuiltins, mkdefs, mkdocs, mkf77def.in, mkops: Initialize environment variable defaults consistently. Use shift only when the argument list is not empty. Remove unnecessary quotes and semicolons on variable assignments. Insert/remove blank lines for consistency.
author Mike Miller <mtmiller@octave.org>
date Tue, 16 Feb 2016 18:36:00 -0800
parents 2fc554ffbc28
children b76955e83fe4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
1 #! /bin/sh
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
2
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
3 set -e
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
4
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 15195
diff changeset
5 AWK=${AWK:-awk}
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
6
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
7 if [ $# -eq 1 ]; then
21277
1bca6c72d2b1 maint: Use consistent coding style for build helper shell scripts
Mike Miller <mtmiller@octave.org>
parents: 15195
diff changeset
8 top_srcdir="$1"
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
9 else
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
10 top_srcdir="../.."
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
11 fi
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents:
diff changeset
12
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
13 move_if_change="$top_srcdir/build-aux/move-if-change"
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
14
15195
2fc554ffbc28 split libinterp from src
John W. Eaton <jwe@octave.org>
parents: 15076
diff changeset
15 dld_dir=$top_srcdir/libinterp/dldfcn
10376
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
16
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
17 $AWK -f $dld_dir/config-module.awk < $dld_dir/module-files > $dld_dir/module.mk-t
1ed7cc046c52 Makefile.am rules for rebuilding .mk files
John W. Eaton <jwe@octave.org>
parents: 9794
diff changeset
18
12733
b67c2d580a25 maint: clean up top-level directory
John W. Eaton <jwe@octave.org>
parents: 10376
diff changeset
19 $move_if_change $dld_dir/module.mk-t $dld_dir/module.mk