~ubuntu-branches/ubuntu/lucid/boinc/lucid

« back to all changes in this revision

Viewing changes to tools/make_project

  • Committer: Bazaar Package Importer
  • Author(s): Frank S. Thomas, Frank S. Thomas
  • Date: 2008-05-31 08:02:47 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20080531080247-4ce890lp2rc768cr
Tags: 6.2.7-1
[ Frank S. Thomas ]
* New upstream release.
  - BOINC Manager: Redraw disk usage charts immediately after connecting to
    a (different) client. (closes: 463823)
* debian/copyright:
  - Added the instructions from debian/README.Debian-source about how
    repackaged BOINC tarballs can be reproduced because DevRef now
    recommends to put this here instead of in the afore-mentioned file.
  - Updated for the new release.
* Removed the obsolete debian/README.Debian-source.
* For consistency upstream renamed the core client and the command tool
  ("boinc_client" to "boinc" and "boinc_cmd" to "boinccmd"). Done the same
  in all packages and created symlinks with the old names for the binaries
  and man pages. Also added an entry in debian/boinc-client.NEWS explaining
  this change.
* debian/rules: Do not list Makefile.ins in the clean target individually,
  just remove all that can be found.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/env python
2
2
 
3
 
# $Id: make_project 12521 2007-05-01 21:21:13Z boincadm $
 
3
# $Id: make_project 14468 2008-01-04 22:59:21Z davea $
4
4
# Creates a new BOINC project.
5
5
 
6
6
import boinc_path_config
36
36
   --delete_prev_inst   delete project-root first (from prev installation)
37
37
   --drop_db_first      drop database first (from prev installation)
38
38
   --test_app           install test application
 
39
   --web_only           install web files, no executables (for Bossa, Bolt)
39
40
 
40
41
Dir-options:
41
42
   --project_root       default: HOME/projects/PROJECT
76
77
            'verbose=',
77
78
            'no_query',
78
79
            'test_app',
 
80
            'web_only',
79
81
            'user_name=',
80
82
            'drop_db_first',
81
83
            'delete_prev_inst',
98
100
options.url_base = None
99
101
options.no_query = False
100
102
options.test_app = False
 
103
options.web_only = False
101
104
options.delete_prev_inst = False
102
105
 
103
106
for o,a in opts:
106
109
    elif o == '--verbose':       options.echo_verbose   = int(a)
107
110
    elif o == '--no_query':      options.no_query       = True
108
111
    elif o == '--test_app':      options.test_app       = True
 
112
    elif o == '--web_only':      options.web_only       = True
109
113
    elif o == '--user_name':     options.user_name      = a
110
114
    elif o == '--drop_db_first': options.drop_db_first  = True
111
115
    elif o == '--delete_prev_inst': options.delete_prev_inst  = True
206
210
    cgi_url = options.cgi_url,
207
211
    key_dir = options.key_dir,
208
212
    db_name = options.db_name,
 
213
    web_only = options.web_only,
209
214
    production = True
210
215
    )
211
216
 
227
232
t.period = '24 hours'
228
233
t.output = 'db_dump.out'
229
234
t.cmd = 'db_dump -d 2 -dump_spec ../db_dump_spec.xml'
 
235
t.disabled = 1
230
236
 
231
237
t = project.config.tasks.make_node_and_append("task")
232
238
t.period = '1 days'
233
239
t.output = 'update_uotd.out'
234
 
t.cmd = 'run_in_ops update_uotd.php'
 
240
t.cmd = 'run_in_ops ./update_uotd.php'
 
241
t.disabled = 1
235
242
 
236
243
t = project.config.tasks.make_node_and_append("task")
237
244
t.period = '1 hour'
238
245
t.output = 'update_forum_activities.out'
239
 
t.cmd = 'run_in_ops update_forum_activities.php'
 
246
t.cmd = 'run_in_ops ./update_forum_activities.php'
 
247
t.disabled = 1
240
248
 
241
249
t = project.config.tasks.make_node_and_append("task")
242
250
t.period = '7 days'
243
251
t.output = 'update_stats.out'
244
252
t.cmd = 'update_stats -update_users -update_teams -update_hosts'
 
253
t.disabled = 1
245
254
 
246
255
t = project.config.tasks.make_node_and_append("task")
247
256
t.period = '24 hours'
248
257
t.output = 'update_profile_pages.out'
249
 
t.cmd = 'run_in_ops update_profile_pages.php'
 
258
t.cmd = 'run_in_ops ./update_profile_pages.php'
 
259
t.disabled = 1
 
260
 
 
261
t = project.config.tasks.make_node_and_append("task")
 
262
t.period = '24 hours'
 
263
t.output = 'team_import.out'
 
264
t.cmd = 'run_in_ops ./team_import.php'
 
265
t.disabled = 1
 
266
 
 
267
t = project.config.tasks.make_node_and_append("task")
 
268
t.period = '24 hours'
 
269
t.output = 'notify.out'
 
270
t.cmd = 'run_in_ops ./notify.php'
 
271
t.disabled = 1
250
272
 
251
273
project.config.write()
252
274