#!/bin/sh

### simply uses matlab to get the correct mex extension ###
MAT_ARCH=glnxa64
test $(dpkg-architecture -qDEB_BUILD_ARCH) = i386 && MAT_ARCH=glnx86
matlab -arch=$MAT_ARCH -nosplash -nodesktop -nojvm -r "fprintf(2 , '%s\n', mexext); quit" 2>&1 | grep mex
