[scripts] strictly follow spec files order given in arrays
This commit is contained in:
parent
857d5b9ea8
commit
032c0dc553
@ -106,6 +106,7 @@ build_sabayon() {
|
|||||||
rm -rf /sabayon/molecules/daily/*.spec
|
rm -rf /sabayon/molecules/daily/*.spec
|
||||||
rm -rf /sabayon/molecules/daily/remaster/*.spec
|
rm -rf /sabayon/molecules/daily/remaster/*.spec
|
||||||
|
|
||||||
|
local source_specs=""
|
||||||
for i in ${!SOURCE_SPECS[@]}
|
for i in ${!SOURCE_SPECS[@]}
|
||||||
do
|
do
|
||||||
src="/sabayon/molecules/${SOURCE_SPECS[i]}"
|
src="/sabayon/molecules/${SOURCE_SPECS[i]}"
|
||||||
@ -119,8 +120,10 @@ build_sabayon() {
|
|||||||
# tweak release version
|
# tweak release version
|
||||||
sed -i "s/release_version.*/release_version: ${CUR_DATE}/" "${dst}" || exit 1
|
sed -i "s/release_version.*/release_version: ${CUR_DATE}/" "${dst}" || exit 1
|
||||||
echo "${dst}: iso: ${SOURCE_SPECS_ISO[i]} date: ${CUR_DATE}"
|
echo "${dst}: iso: ${SOURCE_SPECS_ISO[i]} date: ${CUR_DATE}"
|
||||||
|
source_specs+="\"${dst}\" "
|
||||||
done
|
done
|
||||||
|
|
||||||
|
local remaster_specs=""
|
||||||
for i in ${!REMASTER_SPECS[@]}
|
for i in ${!REMASTER_SPECS[@]}
|
||||||
do
|
do
|
||||||
src="/sabayon/molecules/${REMASTER_SPECS[i]}"
|
src="/sabayon/molecules/${REMASTER_SPECS[i]}"
|
||||||
@ -132,6 +135,7 @@ build_sabayon() {
|
|||||||
# tweak release version
|
# tweak release version
|
||||||
sed -i "s/release_version.*/release_version: ${CUR_DATE}/" "${dst}" || exit 1
|
sed -i "s/release_version.*/release_version: ${CUR_DATE}/" "${dst}" || exit 1
|
||||||
echo "${dst}: iso: ${REMASTER_SPECS_ISO[i]} date: ${CUR_DATE}"
|
echo "${dst}: iso: ${REMASTER_SPECS_ISO[i]} date: ${CUR_DATE}"
|
||||||
|
remaster_specs+="\"${dst}\" "
|
||||||
done
|
done
|
||||||
|
|
||||||
for i in ${!REMASTER_OPENVZ_SPECS[@]}
|
for i in ${!REMASTER_OPENVZ_SPECS[@]}
|
||||||
@ -145,10 +149,11 @@ build_sabayon() {
|
|||||||
# tweak release version
|
# tweak release version
|
||||||
sed -i "s/release_version.*/release_version: ${CUR_DATE}/" "${dst}" || exit 1
|
sed -i "s/release_version.*/release_version: ${CUR_DATE}/" "${dst}" || exit 1
|
||||||
echo "${dst}: iso: ${REMASTER_OPENVZ_SPECS_TAR[i]} date: ${CUR_DATE}"
|
echo "${dst}: iso: ${REMASTER_OPENVZ_SPECS_TAR[i]} date: ${CUR_DATE}"
|
||||||
|
remaster_specs+="\"${dst}\" "
|
||||||
done
|
done
|
||||||
|
|
||||||
molecule --nocolor /sabayon/molecules/daily/*.spec && \
|
molecule --nocolor ${source_specs} && \
|
||||||
molecule --nocolor /sabayon/molecules/daily/remaster/*.spec && \
|
molecule --nocolor ${remaster_specs} && \
|
||||||
cp /sabayon/iso/*DAILY* /sabayon/iso_rsync/ && \
|
cp /sabayon/iso/*DAILY* /sabayon/iso_rsync/ && \
|
||||||
( date > /sabayon/iso_rsync/RELEASE_DATE_DAILY ) && \
|
( date > /sabayon/iso_rsync/RELEASE_DATE_DAILY ) && \
|
||||||
/sabayon/scripts/make_torrents.sh
|
/sabayon/scripts/make_torrents.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user