Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 35 lines (23 sloc) 524 Bytes
#!/bin/sh
./clean
./make $*
exitCode=$?
if [ $exitCode -ne 0 ]; then
exit $exitCode
fi
echo "\033[44;37;1mPackaging OpenCOR...\033[0m"
cd build
if [ "`uname -s`" = "Linux" ]; then
cpack
else
if [ -f /Applications/PackageMaker.app/Contents/MacOS/PackageMaker ]; then
cpack -G PackageMaker -D CPACK_INSTALL_PREFIX=/Applications/OpenCOR
fi
cpack -G ZIP -D CPACK_INSTALL_PREFIX=.
fi
exitCode=$?
cd ..
if [ $exitCode -eq 0 ]; then
echo "\033[42;37;1mAll done!\033[0m"
fi
exit $exitCode