2013-10-23 20:57:09 +00:00
|
|
|
#!/bin/bash
|
2013-10-23 20:00:18 +00:00
|
|
|
|
|
|
|
SCRIPT_PATH=$(dirname $0)
|
2013-10-23 20:57:09 +00:00
|
|
|
export LD_LIBRARY_PATH=${SCRIPT_PATH}/lib:"${LD_LIBRARY_PATH}"
|
2013-10-23 20:00:18 +00:00
|
|
|
cd ${SCRIPT_PATH}
|
2013-10-23 20:57:09 +00:00
|
|
|
COLLECT_NEEDED=$(ldd lib/paysages-gui | grep -c 'not found')
|
|
|
|
[ $COLLECT_NEEDED -gt 0 ] && export LD_LIBRARY_PATH=${SCRIPT_PATH}/lib/collected:"${LD_LIBRARY_PATH}"
|
2015-07-28 17:03:10 +00:00
|
|
|
${SCRIPT_PATH}/lib/paysages-modeler
|
2013-10-23 20:57:09 +00:00
|
|
|
cd - > /dev/null
|
2013-10-23 20:00:18 +00:00
|
|
|
|