commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnue-common setup-cvs.py


From: James Thompson
Subject: gnue-common setup-cvs.py
Date: Thu, 19 Jun 2003 21:21:44 -0400

CVSROOT:        /cvsroot/gnue
Module name:    gnue-common
Branch:         
Changes by:     James Thompson <address@hidden> 03/06/19 21:21:43

Modified files:
        .              : setup-cvs.py 

Log message:
        adjust setup-cvs.py to reflect new cvs layout
        run from gnue-common dir.
        The .cvsdevelbase will end up in gnue-common/../.cvsdevelbase

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gnue/gnue-common/setup-cvs.py.diff?tr1=1.48&tr2=1.49&r1=text&r2=text

Patches:
Index: gnue-common/setup-cvs.py
diff -c gnue-common/setup-cvs.py:1.48 gnue-common/setup-cvs.py:1.49
*** gnue-common/setup-cvs.py:1.48       Mon Jun 16 12:35:20 2003
--- gnue-common/setup-cvs.py    Thu Jun 19 21:21:43 2003
***************
*** 23,47 ****
  import sys, string, os, glob
  
  
! BASEDIR = os.path.join(os.getcwd(), '.cvsdevelbase')
! CVSDIR = os.path.abspath(os.getcwd())
  PYTHONBIN=sys.executable
  
  rootCommands = []
  
  def createCVS (scriptdir,script,py):
    script = "%s%s" % (script, SUFFIX)
!   print "Creating %s" % os.path.join(scriptdir, script)
!   file = open(os.path.join(scriptdir, script),'w')
!   file.write(cvsbase % py)
!   file.close()
!   os.system ('chmod 700 %s/%s/%s' % (CVSDIR,scriptdir, script))
! 
!   rootCommands.append ('rm -f %s/%s' % (BINDIR, script))
!   rootCommands.append ('ln -s %s/%s/%s %s/%s' % \
!         (CVSDIR, scriptdir, script, BINDIR, script))
!   rootCommands.append ('chmod o+x %s/%s/%s' % (CVSDIR,scriptdir, script))
! 
  
  def createDocs(sgmlfile, destdir):
    sgmlfile = os.path.join(CVSDIR, sgmlfile)
--- 23,51 ----
  import sys, string, os, glob
  
  
! BASEDIR = os.path.abspath(os.path.join(os.getcwd(), '../.cvsdevelbase'))
! CVSDIR = os.path.abspath(os.path.join(os.getcwd(),'..'))
  PYTHONBIN=sys.executable
  
  rootCommands = []
  
  def createCVS (scriptdir,script,py):
    script = "%s%s" % (script, SUFFIX)
!   print "Creating %s....." % os.path.join('..',scriptdir, script) ,
!   try:
!     file = open(os.path.join('..',scriptdir, script),'w')
!     file.write(cvsbase % py)
!     file.close()
!     os.system ('chmod 700 %s/%s/%s' % (CVSDIR,scriptdir, script))
! 
!     rootCommands.append ('rm -f %s/%s' % (BINDIR, script))
!     rootCommands.append ('ln -s %s/%s/%s %s/%s' % \
!           (CVSDIR, scriptdir, script, BINDIR, script))
!     rootCommands.append ('chmod o+x %s/%s/%s' % (CVSDIR,scriptdir, script))
!   except IOError:
!     print "Unable to create.  Do you have this package checked out?"
!   else:
!     print "ok"
  
  def createDocs(sgmlfile, destdir):
    sgmlfile = os.path.join(CVSDIR, sgmlfile)
***************
*** 362,377 ****
  os.makedirs('%s/gnue' % GNUEDIR)
  os.system ("""
      cd %(GNUEDIR)s
!     ln -s %(CVSDIR)s/common/module/base/__init__.py .
!     ln -s %(CVSDIR)s/common/src common
!     if [ -f %(CVSDIR)s/common/src/.GDTD.py ]; then rm -f 
%(CVSDIR)s/common/src/.GDTD.py; fi
!     ln -s %(CVSDIR)s/common/scripts/gnuedtd %(CVSDIR)s/common/src/.GDTD.py
!     ln -s %(CVSDIR)s/designer/src designer
!     ln -s %(CVSDIR)s/forms/src forms
!     ln -s %(CVSDIR)s/reports/src reports
!     ln -s %(CVSDIR)s/navigator/src navigator
!     ln -s %(CVSDIR)s/integrator/src integrator
!     ln -s %(CVSDIR)s/appserver/src appserver
  
  """ % globals() )
  
--- 366,381 ----
  os.makedirs('%s/gnue' % GNUEDIR)
  os.system ("""
      cd %(GNUEDIR)s
!     ln -s %(CVSDIR)s/gnue-common/module/base/__init__.py .
!     ln -s %(CVSDIR)s/gnue-common/src common
!     if [ -f %(CVSDIR)s/gnue-common/src/.GDTD.py ]; then rm -f 
%(CVSDIR)s/gnue-common/src/.GDTD.py; fi
!     ln -s %(CVSDIR)s/gnue-common/scripts/gnuedtd 
%(CVSDIR)s/common/src/.GDTD.py
!     ln -s %(CVSDIR)s/gnue-designer/src designer
!     ln -s %(CVSDIR)s/gnue-forms/src forms
!     ln -s %(CVSDIR)s/gnue-reports/src reports
!     ln -s %(CVSDIR)s/gnue-navigator/src navigator
!     ln -s %(CVSDIR)s/gnue-integrator/src integrator
!     ln -s %(CVSDIR)s/gnue-appserver/src appserver
  
  """ % globals() )
  
***************
*** 379,385 ****
  rootCommands.append("""
  cd %(CONFDIR)s/etc
  rm -f sample.*
! ln -s %(CVSDIR)s/common/etc/sample.* .
  
  cd %(CONFDIR)s/shared
  rm -rf images filters
--- 383,389 ----
  rootCommands.append("""
  cd %(CONFDIR)s/etc
  rm -f sample.*
! ln -s %(CVSDIR)s/gnue-common/etc/sample.* .
  
  cd %(CONFDIR)s/shared
  rm -rf images filters
***************
*** 389,436 ****
  cd %(CONFDIR)s/shared/grpc
  rm -f GEAS.grpc GRServer.grpc
  
! ln -s %(CVSDIR)s/common/images/* %(CONFDIR)s/shared/images/
! ln -s %(CVSDIR)s/forms/images %(CONFDIR)s/shared/images/forms
! ln -s %(CVSDIR)s/designer/images %(CONFDIR)s/shared/images/designer
  
  rm -f %(CONFDIR)s/shared/dialogs
! ln -s %(CVSDIR)s/forms/dialogs %(CONFDIR)s/shared/dialogs
  
! ln -s %(CVSDIR)s/reports/src/adapters/filters/Labels/etc 
%(CONFDIR)s/shared/filters/Labels
! ln -s %(CVSDIR)s/reports/src/adapters/filters/SimpleTabulation/etc 
%(CONFDIR)s/shared/filters/SimpleTabulation
  
! ln -s %(CVSDIR)s/appserver/grpc/GEAS.grpc %(CONFDIR)s/shared/grpc/GEAS.grpc
! ln -s %(CVSDIR)s/reports/grpc/GRServer.grpc 
%(CONFDIR)s/shared/grpc/GRServer.grpc
  
  cd %(CONFDIR)s/translations
  rm -f ?? ??_??
! ln -s %(CVSDIR)s/common/translations/?? %(CONFDIR)s/translations/
! ln -s %(CVSDIR)s/common/translations/??_?? %(CONFDIR)s/translations/
  """ % globals() )
  
  
! createCVS ('forms/scripts','gfcvs','forms/GFClient.py')
! createCVS ('reports/scripts','grcvs','reports/client/GRRun.py')
! createCVS ('reports/scripts','grdcvs','reports/server/GRServer.py')
! createCVS ('designer/scripts','gfdes','designer/Designer.py')
! createCVS ('navigator/scripts','gncvs','navigator/GNClient.py')
! createCVS ('integrator/scripts','gicvs','integrator/GIClient.py')
! createCVS ('common/scripts','grpcdoc','common/rpc/drivers/_helpers/RpcDoc.py')
! #createCVS ('common/scripts','gtestcvs','common/GTest.py')
! createCVS ('common/scripts','gdtdcvs','common/.GDTD.py')
! createCVS ('common/scripts','gsscvs','common/schema/scripter/Scripter.py')
! createCVS ('common/scripts','gcvs','')
! createCVS ('appserver/scripts','gacvs','appserver/geasRpcServer.py')
  
  if willInstallDocs:
!   createDocs('docbook/GNUEnterprise/main.sgml', 'GNUEnterprise')
!   createDocs('docbook/DevelopersIntroduction/main.sgml',
               'DevelopersIntroduction')
!   createDocs('docbook/GDAQuickHackersGuide/main.sgml', 
               'GDAQuickHackersGuide')
!   createDocs('docbook/GNUeFormsTechRef/main.sgml', 'GNUeFormsTechRef')
!   createDocs('docbook/GNUeModuleGuide/main.sgml', 'GNUeModuleGuide')
!   createDocs('docbook/GNUeObjectServer/main.sgml',
               'GNUeObjectServer')
  
  willCreateConf = 0
--- 393,440 ----
  cd %(CONFDIR)s/shared/grpc
  rm -f GEAS.grpc GRServer.grpc
  
! ln -s %(CVSDIR)s/gnue-common/images/* %(CONFDIR)s/shared/images/
! ln -s %(CVSDIR)s/gnue-forms/images %(CONFDIR)s/shared/images/forms
! ln -s %(CVSDIR)s/gnue-designer/images %(CONFDIR)s/shared/images/designer
  
  rm -f %(CONFDIR)s/shared/dialogs
! ln -s %(CVSDIR)s/gnue-forms/dialogs %(CONFDIR)s/shared/dialogs
  
! ln -s %(CVSDIR)s/gnue-reports/src/adapters/filters/Labels/etc 
%(CONFDIR)s/shared/filters/Labels
! ln -s %(CVSDIR)s/gnue-reports/src/adapters/filters/SimpleTabulation/etc 
%(CONFDIR)s/shared/filters/SimpleTabulation
  
! ln -s %(CVSDIR)s/gnue-appserver/grpc/GEAS.grpc 
%(CONFDIR)s/shared/grpc/GEAS.grpc
! ln -s %(CVSDIR)s/gnue-reports/grpc/GRServer.grpc 
%(CONFDIR)s/shared/grpc/GRServer.grpc
  
  cd %(CONFDIR)s/translations
  rm -f ?? ??_??
! ln -s %(CVSDIR)s/gnue-common/translations/?? %(CONFDIR)s/translations/
! ln -s %(CVSDIR)s/gnue-common/translations/??_?? %(CONFDIR)s/translations/
  """ % globals() )
  
  
! createCVS ('gnue-forms/scripts','gfcvs','forms/GFClient.py')
! createCVS ('gnue-reports/scripts','grcvs','reports/client/GRRun.py')
! createCVS ('gnue-reports/scripts','grdcvs','reports/server/GRServer.py')
! createCVS ('gnue-designer/scripts','gfdes','designer/Designer.py')
! createCVS ('gnue-navigator/scripts','gncvs','navigator/GNClient.py')
! createCVS ('gnue-integrator/scripts','gicvs','integrator/GIClient.py')
! createCVS 
('gnue-common/scripts','grpcdoc','common/rpc/drivers/_helpers/RpcDoc.py')
! #createCVS ('gnue-common/scripts','gtestcvs','common/GTest.py')
! createCVS ('gnue-common/scripts','gdtdcvs','common/.GDTD.py')
! createCVS 
('gnue-common/scripts','gsscvs','common/schema/scripter/Scripter.py')
! createCVS ('gnue-common/scripts','gcvs','')
! createCVS ('gnue-appserver/scripts','gacvs','appserver/geasRpcServer.py')
  
  if willInstallDocs:
!   createDocs('gnue-docbook/GNUEnterprise/main.sgml', 'GNUEnterprise')
!   createDocs('gnue-docbook/DevelopersIntroduction/main.sgml',
               'DevelopersIntroduction')
!   createDocs('gnue-docbook/GDAQuickHackersGuide/main.sgml', 
               'GDAQuickHackersGuide')
!   createDocs('gnue-docbook/GNUeFormsTechRef/main.sgml', 'GNUeFormsTechRef')
!   createDocs('gnue-docbook/GNUeModuleGuide/main.sgml', 'GNUeModuleGuide')
!   createDocs('gnue-docbook/GNUeObjectServer/main.sgml',
               'GNUeObjectServer')
  
  willCreateConf = 0
***************
*** 465,473 ****
      print "we can create a symlinked gnue.conf file that always mirrors CVS. 
This"
      print "will not allow you to customize gnue.conf, however."
      if getYesNo ("Do you want to use a symlinked gnue.conf file?",'N'):
!       command = "ln -s %(CVSDIR)s/common/etc/sample.gnue.conf 
%(CONFDIR)s/etc/gnue.conf" % globals()
      else:
!       command = "cp %(CVSDIR)s/common/etc/sample.gnue.conf 
%(CONFDIR)s/etc/gnue.conf" % globals()
  
      rootCommands.append(command)
  
--- 469,477 ----
      print "we can create a symlinked gnue.conf file that always mirrors CVS. 
This"
      print "will not allow you to customize gnue.conf, however."
      if getYesNo ("Do you want to use a symlinked gnue.conf file?",'N'):
!       command = "ln -s %(CVSDIR)s/gnue-common/etc/sample.gnue.conf 
%(CONFDIR)s/etc/gnue.conf" % globals()
      else:
!       command = "cp %(CVSDIR)s/gnue-common/etc/sample.gnue.conf 
%(CONFDIR)s/etc/gnue.conf" % globals()
  
      rootCommands.append(command)
  
***************
*** 476,482 ****
    print ""
    print "You do not currently have a connections.conf configuration file."
    if getYesNo("Do you want to create a connections.conf based on the supplied 
examples?",'Y'):
!     rootCommands.append("cp %(CVSDIR)s/common/etc/sample.connections.conf 
%(CONFDIR)s/etc/connections.conf" % globals())
  
    print
    print "NOTE: Your connections.conf file will need to"
--- 480,486 ----
    print ""
    print "You do not currently have a connections.conf configuration file."
    if getYesNo("Do you want to create a connections.conf based on the supplied 
examples?",'Y'):
!     rootCommands.append("cp 
%(CVSDIR)s/gnue-common/etc/sample.connections.conf 
%(CONFDIR)s/etc/connections.conf" % globals())
  
    print
    print "NOTE: Your connections.conf file will need to"
***************
*** 491,499 ****
      print "we can create a symlinked report-filters.conf file that always 
mirrors CVS. This"
      print "will not allow you to customize report-filters.conf, however."
      if getYesNo ("Do you want to use a symlinked report-filters.conf 
file?",'N'):
!       command = "ln -s %(CVSDIR)s/common/etc/sample.report-filters.conf 
%(CONFDIR)s/etc/report-filters.conf" % globals()
      else:
!       command = "cp %(CVSDIR)s/common/etc/sample.report-filters.conf 
%(CONFDIR)s/etc/report-filters.conf" % globals()
  
      rootCommands.append(command)
  
--- 495,503 ----
      print "we can create a symlinked report-filters.conf file that always 
mirrors CVS. This"
      print "will not allow you to customize report-filters.conf, however."
      if getYesNo ("Do you want to use a symlinked report-filters.conf 
file?",'N'):
!       command = "ln -s %(CVSDIR)s/gnue-common/etc/sample.report-filters.conf 
%(CONFDIR)s/etc/report-filters.conf" % globals()
      else:
!       command = "cp %(CVSDIR)s/gnue-common/etc/sample.report-filters.conf 
%(CONFDIR)s/etc/report-filters.conf" % globals()
  
      rootCommands.append(command)
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]