annotate bin/cerium @ 297:f8006660a45c

start task config
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 07 Jun 2009 13:22:58 +0900
parents
children 7839cb3e928f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
297
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #!/usr/bin/perl -w
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 use strict;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 my $command = shift;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 my $main = "main.cc";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 my $task_config = "tasks.xml";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 if ($command =~ /init/) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 &init;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 } elsif ($command =~ /make/) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 &make;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 } elsif ($command =~ /help/) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 &help;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 } else {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 &help;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 exit 0;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 sub help {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 print "$0 init ... initialize cerium application\n";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 sub init {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 # setup initial cerium configuration
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 mkdir "Task";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 if (! -e $main ) &make_main;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 if (! -e $task_config ) &make_task_config;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 sub make_main {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 open(F,">$main") or die("Can't write $main\n");
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 print F <<"EOFEOF";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34 #include <stdio.h>
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 #include <stdlib.h>
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 #include <string.h>
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 #include "TaskManager.h"
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
38 #include "Func.h"
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
40 extern void task_init(void);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
41
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
42 const char *usr_help_str = "Usage: ./main [-cpu spe_num] [-count N]\n\
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
43 -cpu Number of SPE (default 1) \n\";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 int
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
46 init(int argc, char **argv)
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
47 {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
48 for (int i = 1; argv[i]; ++i) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
49 if (strcmp(argv[i], "-count") == 0) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
50 count = atoi(argv[++i]);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
54
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55 return 0;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
57
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
58 void
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
59 hello_init(void)
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
60 {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
61 HTask *hello;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
62
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
63 for (int i = 0; i < count; i++) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
64 /**
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
65 * Create Task
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
66 * create_task(Task ID);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
67 */
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
68 hello = manager->create_task(HELLO_TASK);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
69
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
70 /**
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
71 * Select CPU
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
72 * SPE_0, SPE_1, SPE_2, SPE_3, SPE_4, SPE_5, SPE_ANY
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
73 * if you do not call this, execute PPE.
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
74 */
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
75 hello->set_cpu(SPE_ANY);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
76
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
77 /**
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
78 * Set 32bits parameter
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
79 * add_param(32bit parameter);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
80 */
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 hello->add_param(i);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
82
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 hello->spawn();
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
86
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 int
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 TMmain(int argc, char *argv[])
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 if (init(argc, argv) < 0) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 return -1;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 task_init();
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 init();
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
95
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
96 return 0;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
97 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 EOFEOF
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 } else {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 &help;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 exit 0;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
104
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 sub help {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 print "$0 init ... initialize cerium application\n";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
108
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 sub init {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 # setup initial cerium configuration
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 mkdir "Task";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 if (! -e $main ) &make_main;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
113 if (! -e $task_config ) &make_task_config;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
115
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
116 sub make_main {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 open(F,">$main") or die("Can't write $main\n");
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
118 print F <<"EOFEOF";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 #include <stdio.h>
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
120 #include <stdlib.h>
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 #include <string.h>
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 #include "TaskManager.h"
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 #include "Func.h"
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
124
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 extern void task_init(void);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
126
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
127 const char *usr_help_str = "Usage: ./main [-cpu spe_num] [-count N]\n\
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
128 -cpu Number of SPE (default 1) \n\";
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
129
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
130 int
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
131 init(int argc, char **argv)
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
132 {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
133 for (int i = 1; argv[i]; ++i) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
134 if (strcmp(argv[i], "-count") == 0) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
135 count = atoi(argv[++i]);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
136 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
137
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
138 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
139
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
140 return 0;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
141 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
142
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
143 void
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
144 hello_init(void)
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
145 {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
146 HTask *hello;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
147
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 for (int i = 0; i < count; i++) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
149 /**
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
150 * Create Task
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
151 * create_task(Task ID);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
152 */
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 hello = manager->create_task(HELLO_TASK);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
154
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
155 /**
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 * Select CPU
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
157 * SPE_0, SPE_1, SPE_2, SPE_3, SPE_4, SPE_5, SPE_ANY
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 * if you do not call this, execute PPE.
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
159 */
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
160 hello->set_cpu(SPE_ANY);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
161
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
162 /**
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
163 * Set 32bits parameter
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
164 * add_param(32bit parameter);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
165 */
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
166 hello->add_param(i);
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
167
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
168 hello->spawn();
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
169 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
170 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
171
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
172 int
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
173 TMmain(int argc, char *argv[])
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
174 {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
175 if (init(argc, argv) < 0) {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
176 return -1;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
177 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
178 task_init();
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
179 init();
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
180
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
181 return 0;
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
182 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 EOFEOF
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
184 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
185
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 sub make {
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 }
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
188
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
189 __END__
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
190
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 =head1 NAME
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
192
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 cerium -- Cerium task manager configuration manager
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
194
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
195 =head1 SYNOPSIS
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
196
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
197 cerium init
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 cerium make
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 cerium help
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
200
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 =head1 DESCRIPTION
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
202
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 cerium init
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
204
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
205 =cut
f8006660a45c start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
206