mirror of
https://github.com/aportelli/LatAnalyze.git
synced 2024-11-10 00:45:36 +00:00
23 lines
582 B
Bash
Executable File
23 lines
582 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PREFIX=`cat Makefile | grep '^prefix =' | awk '{print $3}'`
|
|
case $1 in
|
|
'')
|
|
echo '-- building...'
|
|
make -j3
|
|
echo '-- installing...'
|
|
make uninstall 1>/dev/null
|
|
make install 1>/dev/null
|
|
if [[ `basename \`pwd\`` == "latan" ]]
|
|
then
|
|
echo '-- creating debug symbols...'
|
|
dsymutil .libs/liblatan.0.dylib -o ${PREFIX}/lib/liblatan.0.dylib.dSYM
|
|
fi;;
|
|
'clean')
|
|
echo '-- cleaning...'
|
|
make -j3 clean;;
|
|
*)
|
|
echo 'error: unknown action' 1>&2
|
|
exit 1;;
|
|
esac
|