3 |
source /usr/lib/mage/mage4.functions.sh |
source /usr/lib/mage/mage4.functions.sh |
4 |
|
|
5 |
SMAGEFILE="$1" |
SMAGEFILE="$1" |
6 |
|
if [[ -z ${SMAGEFILE} ]] |
7 |
|
then |
8 |
|
echo "No smagefile given." |
9 |
|
exit 1 |
10 |
|
fi |
11 |
[[ -n $2 ]] && [[ $2 != -st ]] && CVS_COMMIT="$2" |
[[ -n $2 ]] && [[ $2 != -st ]] && CVS_COMMIT="$2" |
12 |
if [[ $3 = -st ]] || [[ $2 = -st ]] |
if [[ $3 = -st ]] || [[ $2 = -st ]] |
13 |
then |
then |
15 |
USE_SRCTARBALL=true |
USE_SRCTARBALL=true |
16 |
fi |
fi |
17 |
|
|
18 |
CURARCH=i686 |
#CURARCH=i686 |
19 |
#CURARCH=x86_64 |
CURARCH=x86_64 |
20 |
|
|
21 |
BUILDROOT=/mnt/BUILDROOT |
BUILDROOT=/mnt/BUILDROOT-${CURARCH} |
22 |
|
#BUILDROOT=/mnt/BUILDROOT |
23 |
|
|
24 |
SMAGEDIR=$(dirname ${SMAGEFILE}) |
SMAGEDIR=$(dirname ${SMAGEFILE}) |
25 |
MD5DIR=${SMAGEDIR}/md5 |
MD5DIR=${SMAGEDIR}/md5 |