[Blends-commit] [SCM] blends-dev branch, master, updated. 35d46f354547349e7c20f48458df33a908398027
Ole Streicher
ole at aip.de
Thu Mar 31 13:32:50 UTC 2016
The following commit has been merged in the master branch:
commit 35d46f354547349e7c20f48458df33a908398027
Author: Ole Streicher <ole at aip.de>
Date: Thu Mar 31 15:29:28 2016 +0200
Group tasks of one blend under a parent task
diff --git a/devtools/blend-gen-control b/devtools/blend-gen-control
index 668a48c..90093cb 100755
--- a/devtools/blend-gen-control
+++ b/devtools/blend-gen-control
@@ -39,6 +39,7 @@ my $CommonPackage = "" ;
my $prefix = "test-" ;
my $blendname = "" ;
my $blendshortname = "" ;
+my $blendtitle = "" ;
my $tasksname = "" ;
my $hasconfig = 0 ;
@@ -257,6 +258,15 @@ sub gen_control {
# Enable to list all dependencies as key packages
my $task_depends_are_keys = 0;
sub print_task_desc {
+ print "Task: $blendname\n";
+ print "Relevance: 9\n";
+ print "Section: $blendname\n";
+# print "Key: \n";
+# print " $blendshortname-tasks\n";
+ print "Description: $blendtitle\n";
+ print " .\n"; # no long description available
+ print "\n";
+
foreach my $task (sort keys %taskinfo) {
next if (exists $taskinfo{$task}{'Leaf'} &&
$taskinfo{$task}{'Leaf'} eq 'false');
@@ -280,6 +290,7 @@ sub print_task_desc {
}
}
print "Task: $task\n";
+ print "Parent: $blendname\n";
print "Section: $blendname\n";
print "Description: $taskinfo{$task}{Description}\n";
print "$taskinfo{$task}{'Description-long'}"; # Already contain newline
@@ -677,6 +688,7 @@ sub blend_init {
$tasksname = $prefix . "tasks";
chomp($blendshortname = `$blend_dev_dir/blend-get-names blendshortname`);
chomp($blendname = `$blend_dev_dir/blend-get-names blendname`);
+ chomp($blendtitle = `$blend_dev_dir/blend-get-names blendtitle`);
}
if ( -d "config" && -e "config/control" ) {
$hasconfig = 1;
--
Git repository for blends code
More information about the Blends-commit
mailing list