Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_tcl.sh @ 127

Last change on this file since 127 was 127, checked in by landauf, 8 years ago

fixed some target paths for cp -aT
fixed cleaning boost
+ some details

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1#!/bin/sh
2
3NAME="[tcl]"
4WORKING_DIR="tcl/tcl8.5.19"
5#WORKING_DIR="tcl/tcl8.6.4"
6
7source ./build_common.sh
8
9# remove the 'pkgs' directory to avoid building unnecessary packages
10rm -rf "pkgs"
11
12# go to 'win' directory
13cd "win"
14check_result $? "cd win"
15
16if [ $DO_CLEAN -eq 1 ]
17then
18        make clean
19        check_result $? "cleaning build"
20fi
21
22if [ $DO_BUILD -eq 1 ]
23then
24        # configure
25        ./configure
26        check_result $? "configure"
27
28        # compile
29        make -j8
30        if [ $? -ne 0 ]
31        then
32                # sometimes the first make-run fails to build the *.exe target -> we call make again and only check the result of the second call
33                echo "${NAME} trying again to build target..."
34                make
35                check_result $? "make"
36        fi
37
38        # copy lib
39        find "." -name "tcl??.dll" -exec cp -a {} ${TARGET_BIN_DIR} \;
40        check_result $? "copy tcl-lib"
41        find "." -name "zlib*.dll" -exec cp -a {} ${TARGET_BIN_DIR} \;
42        check_result $? "copy zlib-lib"
43
44        # copy headers
45        HEADERS_DIR=${TARGET_INC_DIR}/tcl/include
46        mkdir -p $HEADERS_DIR
47        check_result $? "create headers directory"
48        find "../generic/" -name "*.h" -exec cp -a {} ${HEADERS_DIR} \;
49        check_result $? "copy headers"
50       
51        # copy tcl-script library
52        cp -aT "../library" "${TARGET_LIB_DIR}/tcl"
53        check_result $? "copy script library"
54
55        echo "${NAME} Finished building ${NAME}"
56fi
Note: See TracBrowser for help on using the repository browser.