#!/bin/bash #--------------------------------------------------------------------- # Get absolute path for framework directory tree. BS=${BASH_SOURCE[0]} if [ -h $BS ]; then BS=`readlink $BS`; fi THISDIR="$( dirname $BS )" cd $THISDIR || exit 1 THISDIR=`pwd` #--------------------------------------------------------------------- if [ -f mxe.github.mk ]; then echo stripfiles.sh is running in $THISDIR else cat << END Error: Must run "stripfiles.sh" in the top-level "mxe-minetest" build- kit directory. END exit 1 fi #--------------------------------------------------------------------- for THE_ARCH in \ i686-w64-mingw32.static.posix \ x86_64-w64-mingw32.static.posix do USR_BIN=$THISDIR/usr/bin ASTRIP=$USR_BIN/$THE_ARCH-strip if [ -f $ASTRIP ]; then $ASTRIP -g `find . -type f -name \*.a | grep $THE_ARCH` \ || exit 1 # There are presently no EXE files to strip. # # $ASTRIP `find . -type f -name \*.exe | grep $THE_ARCH` \ # || exit 1 fi done