Changeset 63272d3 for core


Ignore:
Timestamp:
Jun 6, 2016 12:37:06 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e27af37
Parents:
280ca2c
Message:

mbuild-all script fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/c/jbigi/mbuild-all.sh

    r280ca2c r63272d3  
    8080
    8181if ! command -v m4 > /dev/null; then
    82     printf "\aWARNING: \`m4\` not found. If this process fails to complete, install m4 " >&2
     82    printf "\aWARNING: \`m4\` not found. Install m4 " >&2
    8383    printf "and re-run this script.\n\n\n\a" >&2
    8484    exit 1
     
    8787
    8888if [ -z $BITS ]; then
    89   UNAME="$(uname -a)"
    90   if test "${UNAME#*x86_64}" != "x86_&4"; then
     89  UNAME="$(uname -m)"
     90  if test "${UNAME#*x86_64}" != "$UNAME"; then
    9191    BITS=64
    92   elif test "${UNAME#*i386}" != "i386"; then
    93     BITS=32
    94   elif test "${UNAME#*i686}" != "i686"; then
    95     BITS=32
    96   elif test "${UNAME#*armv6}" != "armv6"; then
    97     BITS=32
    98   elif test "${UNAME#*armv7}" != "armv7"; then
    99     BITS=32
    100   elif test "${UNAME#*aarch32}" != "aarch32"; then
    101     BITS=32
    102   elif test "${UNAME#*aarch64}" != "aarch64"; then
     92  elif test "${UNAME#*i386}" != "$UNAME"; then
     93    BITS=32
     94  elif test "${UNAME#*i686}" != "$UNAME"; then
     95    BITS=32
     96  elif test "${UNAME#*armv6}" != "$UNAME"; then
     97    BITS=32
     98  elif test "${UNAME#*armv7}" != "$UNAME"; then
     99    BITS=32
     100  elif test "${UNAME#*aarch32}" != "$UNAME"; then
     101    BITS=32
     102  elif test "${UNAME#*aarch64}" != "$UNAME"; then
    103103    BITS=64
    104104  else
    105  
    106105    echo "Unable to detect default setting for BITS variable"
    107     exit
     106    exit 1
    108107  fi
    109 
    110108  printf "\aBITS variable not set, $BITS bit system detected\n\a" >&2
    111109fi
     
    117115fi
    118116
     117# FIXME -m32 and -m64 are only for x86
    119118if [ $BITS -eq 32 ]; then
    120119  export ABI=32
Note: See TracChangeset for help on using the changeset viewer.