Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/windows/precompiled_dependencies/mingw64/build_common.sh @ 128

Last change on this file since 128 was 126, checked in by landauf, 9 years ago

eol-style native

  • Property svn:eol-style set to native
File size: 695 bytes
Line 
1#!/bin/sh
2
3if [ $# -eq 1 ] && [ $1 = "clean" ]
4then
5        DO_CLEAN=1
6        DO_BUILD=0
7elif [ $# -eq 4 ]
8then
9        DO_CLEAN=0
10        DO_BUILD=1
11else
12        echo "${NAME} Usage: $0 <TARGET_BIN_DIR> <TARGET_INC_DIR> <TARGET_LIB_DIR> <TEMP_DIR>"
13        exit 1
14fi
15
16check_result() {
17        if [ $1 -ne 0 ]
18        then
19                echo "${NAME} $2 failed: $1"
20                exit 1
21        fi
22}
23
24if [ $DO_BUILD -eq 1 ]
25then
26        HOME_DIR=$PWD
27        TARGET_BIN_DIR=$HOME_DIR/$1
28        TARGET_INC_DIR=$HOME_DIR/$2
29        TARGET_LIB_DIR=$HOME_DIR/$3
30        TEMP_DIR=$HOME_DIR/$4
31
32        echo "${NAME} Start building ${NAME} in '${WORKING_DIR}'"
33        echo "${NAME} TARGET_BIN_DIR=${TARGET_BIN_DIR}"
34        echo "${NAME} TARGET_INC_DIR=${TARGET_INC_DIR}"
35        echo "${NAME} TARGET_LIB_DIR=${TARGET_LIB_DIR}"
36fi
37
38cd $WORKING_DIR
Note: See TracBrowser for help on using the repository browser.