Last change
on this file since 153 was
127,
checked in by landauf, 9 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
|
Rev | Line | |
---|
[126] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | NAME="[tcl]" |
---|
[127] | 4 | WORKING_DIR="tcl/tcl8.5.19" |
---|
| 5 | #WORKING_DIR="tcl/tcl8.6.4" |
---|
[126] | 6 | |
---|
| 7 | source ./build_common.sh |
---|
| 8 | |
---|
| 9 | # remove the 'pkgs' directory to avoid building unnecessary packages |
---|
| 10 | rm -rf "pkgs" |
---|
| 11 | |
---|
| 12 | # go to 'win' directory |
---|
| 13 | cd "win" |
---|
| 14 | check_result $? "cd win" |
---|
| 15 | |
---|
| 16 | if [ $DO_CLEAN -eq 1 ] |
---|
| 17 | then |
---|
| 18 | make clean |
---|
| 19 | check_result $? "cleaning build" |
---|
| 20 | fi |
---|
| 21 | |
---|
| 22 | if [ $DO_BUILD -eq 1 ] |
---|
| 23 | then |
---|
| 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}" |
---|
| 56 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.