forked from sillsdev/chorus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUpdateDependencies.sh
executable file
·40 lines (31 loc) · 975 Bytes
/
UpdateDependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
# Since Palaso libraries change frequently, you will likely need to
# get that project and be able to build it, then run this script.
# This script assumes that the libraries project are on the same level as this project.
# It copies the needed libraries both into the lib folder and the ${BUILD_CONFIG}Mono folder.
PALASO_DIR=../libpalaso
if [ ! -d ${PALASO_DIR} ]
then
exit
fi
if [ "$1"=="" ]
then
BUILD_CONFIG=Debug
else
BUILD_CONFIG=$1
fi
pushd ${PALASO_DIR}
build/TestBuild.sh ${BUILD_CONFIG}Mono
popd
if [ ! -d output/${BUILD_CONFIG}Mono ]
then
if [ ! -d output ]
then
mkdir output
fi
mkdir output/${BUILD_CONFIG}Mono
fi
cp ${PALASO_DIR}/output/${BUILD_CONFIG}Mono/Palaso*.* lib/${BUILD_CONFIG}Mono
cp ${PALASO_DIR}/output/${BUILD_CONFIG}Mono/SIL.*.* lib/${BUILD_CONFIG}Mono
cp ${PALASO_DIR}/output/${BUILD_CONFIG}Mono/Palaso*.* output/${BUILD_CONFIG}Mono
cp ${PALASO_DIR}/output/${BUILD_CONFIG}Mono/SIL.*.* output/${BUILD_CONFIG}Mono