0025744: XCode projects generator - add extraction options
[occt-wok.git] / collect_binary.sh
CommitLineData
07f67898 1#!/bin/bash
2
3# $1 - debug OR release
4# $2 - compiler name
5# $3 - related package name
6
07f67898 7installRelatePath="package"
8if [ "$3" != "" ]; then
9 installRelatePath=$3
10fi
11
12if [ "$1" == "" -o "$2" == "" ]; then
13 echo "Some arguments are empty. Please try again. For example,"
14 echo "$0 release make installDirRelatedPath"
15 exit 1
16fi
17
18# # Setup environment
19source ./env.sh "$1"
20
24adf1e2 21source ./collect_binary_without_libs.sh $installRelatePath
07f67898 22
23mkdir -p $installRelatePath/3rdparty/lin${ARCH}/codegen
24mkdir -p $installRelatePath/3rdparty/lin${ARCH}/tcltk
25
26# occt libs checking
27preOCCTLibPath="${CASROOT}/lin${ARCH}/${cmdArg2}/lib${CASDEB}"
28if [ -e "$preOCCTLibPath/libTKernel.so" ]; then
29 cp -f "$preOCCTLibPath/libTKernel.so" $installRelatePath/lib/lin/
30else
31 echo "$preOCCTLibPath/libTKernel.so does not exist"
32fi
07f67898 33
34#wok libs checking
35preWOKLibPath="./lin${ARCH}/${cmdArg2}/lib${CASDEB}"
36if [ -d "$preWOKLibPath" ]; then
37 cp -f -R "$preWOKLibPath/*" $installRelatePath/lib/lin/
38else
39 echo "$preWOKLibPath folder DOES NOT exist! "
24adf1e2 40fi