363 |
|
|
364 |
|
|
365 |
|
|
366 |
if os.path.isdir(os.path.join(GNUEDIR,'gnue')): |
if os.path.isdir (GNUEDIR): |
367 |
os.system ('rm -rf %s' % GNUEDIR) |
os.system ('rm -rf %s' % GNUEDIR) |
368 |
|
|
369 |
|
|
370 |
os.makedirs('%s/gnue' % GNUEDIR) |
os.makedirs(GNUEDIR) |
371 |
|
|
372 |
|
# create path.py |
373 |
|
output = open ("%s/paths.py" % GNUEDIR, "w") |
374 |
|
output.write ("# This file was generated by setup-cvs.py.\n") |
375 |
|
output.write ("\n") |
376 |
|
output.write ("lib = \"%s\"\n" % GNUEDIR) |
377 |
|
output.write ("scripts = \"%s\"\n" % BINDIR) |
378 |
|
output.write ("data = \"%s\"\n" % CONFDIR) |
379 |
|
output.write ("config = \"%s/etc\"\n" % CONFDIR) |
380 |
|
output.close () |
381 |
|
|
382 |
os.system (""" |
os.system (""" |
383 |
cd %(GNUEDIR)s |
cd %(GNUEDIR)s |
384 |
ln -s %(CVSDIR)s/gnue-common/module/base/__init__.py . |
ln -s %(CVSDIR)s/gnue-common/module/base/__init__.py . |