lyx_mirror/development/cmake/dmg
Peter Kümmel 41a0adcb47 cmake: build a .dmg file on Mac, looks not as nice as the official installer but it runs
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38765 a592a061-630c-0410-9148-cb99ea01b6c8
2011-05-15 13:21:18 +00:00

32 lines
355 B
Bash
Executable File

#!/bin/bash
if [ -z $1 ]
then
echo "Pass the path to the lyx sources, e.g. dmg ../lyx-devel"
exit 1
fi
cmake -DLYX_MERGE_FILES=1 -DLYX_COCOA=1 -DLYX_NO_OPTIMIZE=1 -DLYX_INSTALL=1 -DLYX_DMG=1 $1
if [ "$?" -nq "0" ]
then
exit 1
fi
make -j4
if [ "$?" -nq "0" ]
then
exit 2
fi
make install/strip
if [ "$?" -nq "0" ]
then
exit 2
fi
make package