mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-24 18:43:37 +00:00
32 lines
355 B
Plaintext
32 lines
355 B
Plaintext
|
#!/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
|