Change to /bin/sh.

All scripts checked with Debian's checkbashisms. Also check for clang first in auto-detect.sh.
This commit is contained in:
Devin Matthews
2017-05-17 12:29:44 -05:00
committed by prangana
parent 49438409ee
commit 3ea9bd2c8e
7 changed files with 12 additions and 18 deletions

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
#
# BLIS
# An object-based framework for developing high-performance BLAS-like
@@ -41,7 +41,11 @@
main()
{
CC=gcc
if [ clang -v > /dev/null 2>&1 ]; then
CC=clang
else
CC=gcc
fi
CPUID_SRC=cpuid_x86.c
CPUID_BIN=blis_cpu_detect
ARCH=reference
@@ -59,12 +63,6 @@ main()
# of the distribution and the directory in which we are building.
cur_dirpath="."
OSNAME=`uname`
if [ $OSNAME = "Darwin" ]; then
CC=clang
fi
#
# Detect architecture by predefined macros
#

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
#
# BLIS
# An object-based framework for developing high-performance BLAS-like

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
#
# BLIS
# An object-based framework for developing high-performance BLAS-like

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
#
# BLIS
# An object-based framework for developing high-performance BLAS-like
@@ -374,10 +374,6 @@ gen_mkfiles()
read_mkfile_config()
{
local index lname
declare -i count
# Read the file describing file suffixes.
src_file_suffixes=$(cat "${suffix_file}")

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
#
# BLIS
# An object-based framework for developing high-performance BLAS-like

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
#
# Copyright (C) 2017, Advanced Micro Devices, Inc.

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/sh
#
# BLIS
# An object-based framework for developing high-performance BLAS-like