Ignore:
Timestamp:
Jun 1, 2016 5:45:27 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1583f35
Parents:
dbd1ae0d
Message:

Build: Fix Debian build on ARM (ticket #1801)

  • Fix other jbigi/jcpuid build script errors and typos
  • Nonzero exit code missing on some jbigi/jcpuid build script failures
  • Refresh patch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/c/jcpuid/build.sh

    rdbd1ae0d rd7e1f62  
    2020    *)
    2121        echo "Unsupported build environment"
    22         exit;;
     22        exit 1;;
    2323esac
    2424
    2525
    2626if [ -z $BITS ]; then
    27   UNAME="$(uname -a)"
    28   if test "${UNAME#*x86_64}" != "x86_&4"; then
     27  UNAME="$(uname -m)"
     28  if test "${UNAME#*x86_64}" != "$UNAME"; then
    2929    BITS=64
    30   elif test "${UNAME#*i386}" != "i386"; then
     30  elif test "${UNAME#*i386}" != "$UNAME"; then
    3131    BITS=32
    32   elif test "${UNAME#*i686}" != "i686"; then
     32  elif test "${UNAME#*i686}" != "$UNAME"; then
    3333    BITS=32
    34   elif test "${UNAME#*armv6}" != "armv6"; then
     34  elif test "${UNAME#*armv6}" != "$UNAME"; then
    3535    BITS=32
    36   elif test "${UNAME#*armv7}" != "armv7"; then
     36  elif test "${UNAME#*armv7}" != "$UNAME"; then
    3737    BITS=32
    38   elif test "${UNAME#*aarch32}" != "aarch32"; then
     38  elif test "${UNAME#*aarch32}" != "$UNAME"; then
    3939    BITS=32
    40   elif test "${UNAME#*aarch64}" != "aarch64"; then
     40  elif test "${UNAME#*aarch64}" != "$UNAME"; then
    4141    BITS=64
    4242  else
    4343 
    4444    echo "Unable to detect default setting for BITS variable"
    45     exit
     45    exit 1
    4646  fi
    4747
Note: See TracChangeset for help on using the changeset viewer.