Browse Source

optionally merge data into build overlay

master
belliash 9 years ago
parent
commit
7436e901be
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      ezsync

+ 15
- 0
ezsync View File

@ -124,3 +124,18 @@ for OVERLAY in ${SYNC_OVERLAYS[*]}; do
[ ${?} -ne 0 ] && fail "EzBuild was unable to synchronize ${CURRENT_OVERLAY[0]}!" 4
fi
done
# Optionally merge data into build overlay
if isSet MERGED_OVERLAY && isSet OVERLAY_BUILD; then
printInfo "Merging ebuilds into building Overlay..."
for OVERLAY in ${MERGED_OVERLAY[*]}; do
TEMP="\${$OVERLAY[*]}"
CURRENT_OVERLAY=(`eval echo ${TEMP}`)
mergeOverlay ${OVERLAYSDIR}/${CURRENT_OVERLAY[0]} ${OVERLAYSDIR}/${OVERLAY_BUILD[0]} ${CURRENT_OVERLAY[4]} ${CURRENT_OVERLAY[5]} ${CURRENT_OVERLAY[6]}
[ ${?} -ne 0 ] && fail "EzBuild was unable to merge ebuilds into overlay!" 8
done
if ! isEnabled ${EZOPT_NOPUSH}; then
pushRepository ${OVERLAYSDIR}/${OVERLAY_BUILD[0]} ${OVERLAY_BUILD[1]} "Automatic overlay update [$(date +"${PUSHDATEFORMAT}")]."
[ ${?} -ne 0 ] && die "Ezbuild was unable to record changes to the remote overlay repository!" 8
fi
fi

Loading…
Cancel
Save