# MYVERSION=3.0.0
# COMPATIBLE_VERSIONS='^(3\.0\.[0-9]+)$'
# Template for development versions
-MYVERSION=3.0.0+toward_3.0.1_20130610124556
+MYVERSION=3.0.0+toward_3.0.1_20130610150827
COMPATIBLE_VERSIONS='^(3\.0\.0\+toward_3\.0\.1_[0-9]+|3\.0\.[0-9]+)$'
MYPREFIX=`dirname "\`dirname \"$0\"\`" | sed 's|/bin$||'`
MYPREFIX=${MYPREFIX:-/usr/local}
PROGRAM_DEPENDS=''
_program_exec_and_record_completion__operation ()
{
+ local tag level dbsuffix
message_section_title "Determining specified targets"
cat "${DBDIR}/stage.loop_list/target_itself.specified" \
"${DBDIR}/stage.loop_list/target_dependents.specified" \
sort -u "${DBDIR}/need.list" "${DBDIR}/targets_specified_so_far" \
> ${DBDIR}/targets_specified_so_far.tmp
mv "${DBDIR}/targets_specified_so_far.tmp" "${DBDIR}/targets_specified_so_far"
- dbsuffix=`options_get_dependency_type`.`options_get_dependency_level`
- {
- cat "${TMPDIR}/DETERMINE_SPECIFIED_TARGETS.reset"
- cat "${DBDIR}/stage.loop_list/target_dependents.specified" | while read origin
- do
- nodedir=${DBDIR}/requires/$origin
- cat "$nodedir/dependents.$dbsuffix" 2> /dev/null
- done
- cat "${DBDIR}/stage.loop_list/target_requirements.specified" | while read origin
+ for tag in all run build none
+ do
+ for level in direct full
do
- nodedir=${DBDIR}/requires/$origin
- cat "$nodedir/requirements.$dbsuffix" 2> /dev/null
+ dbsuffix=$tag.$level
+ {
+ cat "${TMPDIR}/DETERMINE_SPECIFIED_TARGETS.reset"
+ cat "${DBDIR}/stage.loop_list/target_dependents.specified" | while read origin
+ do
+ nodedir=${DBDIR}/requires/$origin
+ cat "$nodedir/dependents.$dbsuffix" 2> /dev/null
+ done
+ cat "${DBDIR}/stage.loop_list/target_requirements.specified" | while read origin
+ do
+ nodedir=${DBDIR}/requires/$origin
+ cat "$nodedir/requirements.$dbsuffix" 2> /dev/null
+ done
+ } | sort -u | while read origin
+ do
+ fileedit_rm_a_line "$origin" "${DBDIR}/success.$dbsuffix.list"
+ fileedit_rm_a_line "$origin" "${DBDIR}/todo_after_requirements_succeed.$dbsuffix.list"
+ rm -f "${DBDIR}/requires/$origin/succeeded_once"
+ done
done
- } | sort -u | while read origin
- do
- fileedit_rm_a_line "$origin" "${DBDIR}/success.$dbsuffix.list"
- fileedit_rm_a_line "$origin" "${DBDIR}/todo_after_requirements_succeed.$dbsuffix.list"
- rm -f "${DBDIR}/requires/$origin/succeeded_once"
done
fi
message_echo