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