Last change
on this file was
126,
checked in by landauf, 9 years ago
|
eol-style native
|
-
Property svn:eol-style set to
native
|
File size:
695 bytes
|
Rev | Line | |
---|
[126] | 1 | #!/bin/sh |
---|
| 2 | |
---|
| 3 | if [ $# -eq 1 ] && [ $1 = "clean" ] |
---|
| 4 | then |
---|
| 5 | DO_CLEAN=1 |
---|
| 6 | DO_BUILD=0 |
---|
| 7 | elif [ $# -eq 4 ] |
---|
| 8 | then |
---|
| 9 | DO_CLEAN=0 |
---|
| 10 | DO_BUILD=1 |
---|
| 11 | else |
---|
| 12 | echo "${NAME} Usage: $0 <TARGET_BIN_DIR> <TARGET_INC_DIR> <TARGET_LIB_DIR> <TEMP_DIR>" |
---|
| 13 | exit 1 |
---|
| 14 | fi |
---|
| 15 | |
---|
| 16 | check_result() { |
---|
| 17 | if [ $1 -ne 0 ] |
---|
| 18 | then |
---|
| 19 | echo "${NAME} $2 failed: $1" |
---|
| 20 | exit 1 |
---|
| 21 | fi |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | if [ $DO_BUILD -eq 1 ] |
---|
| 25 | then |
---|
| 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}" |
---|
| 36 | fi |
---|
| 37 | |
---|
| 38 | cd $WORKING_DIR |
---|
Note: See
TracBrowser
for help on using the repository browser.