#!/bin/bash
# This script will build expat. 
# It will also copy the header files and the library to the current directory
# in a Vatics conventional way, i.e., ./lib and ./src. 
PATH=/usr/bin:/bin:$PATH
APP_NAME=upnpc-shared
LIB=libminiupnpc.so
VERSION=1.8

PACKAGE_DIR=miniupnpc-1.8
HOST='arm-linux-'
CC=${HOST}gcc

# check if you have the proper gcc
which $CC > /dev/null || exit 1 

[ -d "$PACKAGE_DIR" ] || exit 1

cd $PACKAGE_DIR

${HOST}strip ${APP_NAME}
${HOST}strip ${LIB}
