#!/bin/sh
CPWD=`pwd`
PACKED="$CPWD/packed.bin"

if test ! -x "$PACKED"; then
	make -f Makefile clean
	make -f Makefile EXEEXT=".bin" BINPATH="$CPWD" "$PACKED"
fi

cd "$CPWD/data" && $PACKED -c -p "$CPWD/exe/orvellys.dat" * 
