6 |
|
|
7 |
source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh |
source ${BUILDSERVER_LIB_DIR}/buildserver-functions.sh |
8 |
|
|
|
# override |
|
|
#BUILDROOT="/mnt/test-buildroot" |
|
|
#BUILD_ARCH=( x86_64 i686 ) |
|
|
#BUILDROOT_PROFILE="R11" |
|
|
#SMAGE_SVN_REPO="svn://cvs.magellan-linux.de/smage/trunk" |
|
|
#MAGE_SVN_REPO="svn://cvs.magellan-linux.de/mage/trunk" |
|
|
|
|
9 |
SMAGEFILE="$1" |
SMAGEFILE="$1" |
10 |
|
|
11 |
if [[ -z ${SMAGEFILE} ]] |
if [[ -z ${SMAGEFILE} ]] |
13 |
die "no smage file given. call '$(basename $0) with/relative/path/from/buildroot/svn/smage/to/smagefile'" |
die "no smage file given. call '$(basename $0) with/relative/path/from/buildroot/svn/smage/to/smagefile'" |
14 |
fi |
fi |
15 |
|
|
16 |
for arch in $(enum-build-arch-types) |
for arch in src $(enum-build-arch-types) |
17 |
do |
do |
18 |
|
|
19 |
echo "SMAGEFILE=\"${SMAGEFILE}\"" > ${BUILDROOT}/${arch}/.runrc |
echo "SMAGEFILE=\"${SMAGEFILE}\"" > ${BUILDROOT}/${arch}/.runrc |
97 |
export PNAME="${subpackage}" |
export PNAME="${subpackage}" |
98 |
split_info_${PNAME} |
split_info_${PNAME} |
99 |
|
|
100 |
TARGET_PKGFILE+=( "${PKGDIR}/${PNAME}-${PVER}-${BUILD_ARCH}$(print_distrotag)-${PBUILD}.${PKGSUFFIX}" ) |
if [[ ${PKGTYPE} != virtual ]] |
101 |
|
then |
102 |
|
TARGET_PKGFILE+=( "${PKGDIR}/${PNAME}-${PVER}-${BUILD_ARCH}$(print_distrotag)-${PBUILD}.${PKGSUFFIX}" ) |
103 |
|
fi |
104 |
|
|
105 |
# restore smage environment |
# restore smage environment |
106 |
split_restore_variables |
split_restore_variables |
108 |
# unset all saved smage variables |
# unset all saved smage variables |
109 |
split_unset_variables |
split_unset_variables |
110 |
else |
else |
111 |
TARGET_PKGFILE=( "${PKGDIR}/${PNAME}-${PVER}-${BUILD_ARCH}$(print_distrotag)-${PBUILD}.${PKGSUFFIX}" ) |
if [[ ${PKGTYPE} != virtual ]] |
112 |
|
then |
113 |
|
TARGET_PKGFILE=( "${PKGDIR}/${PNAME}-${PVER}-${BUILD_ARCH}$(print_distrotag)-${PBUILD}.${PKGSUFFIX}" ) |
114 |
|
fi |
115 |
fi |
fi |
116 |
|
|
117 |
for i in ${TARGET_PKGFILE[*]} |
for i in ${TARGET_PKGFILE[*]} |