# CA 94903, U.S.A., +1(415)492-9861, for further information. # import os, sys import optparse, myoptparse if __name__ == "__main__": optionsParser = optparse.OptionParser() optionsParser.add_option('--checksum1', action='store', help="path to checksum db 1") optionsParser.add_option('--checksum2', action='store', help="path to checksum db 2") (options, arguments) = myoptparse.parseCommandLineBasic(optionsParser) myself = options.myself checksum1 = options.checksum1 checksum2 = options.checksum2 if not checksum1 or not checksum2: print myself, "both checksum files are required" sys.exit(1) try: print checksum1 checksum1_db = anydbm.open(checksum1, 'r') except: checksum1_db = None print myself, "ERROR: cannot open " + checksum1
optionsParser.add_option('--revision',action='store',help="under contruction",default="HEAD") optionsParser.add_option('--release',action='store',help="under contruction",default=None) optionsParser.add_option('--time','-m',action='store',help="provide start time",default=None) optionsParser.add_option('--nosvn',action='store_true',help="do not update the revision source from the svn repository") optionsParser.add_option('--noconfigure',action='store_true',help="do not run auto configure") optionsParser.add_option('--nomakeclean',action='store_true',help="do not make clean before make") optionsParser.add_option('--nomake',action='store_true',help="do not make") optionsParser.add_option('--nocapture',action='store_true',help="do not capture stdout and stderr from commands") optionsParser.add_option('--remove',action='store_true',help="remove the built directories") (options,arguments)=myoptparse.parseCommandLineBasic(optionsParser) myself=options.myself if options.version: print options.myself,"version",myversion sys.exit(1) options.svn = not options.nosvn options.configure = not options.noconfigure options.make = not options.nomake options.makeclean = not options.nomakeclean options.capture = not options.nocapture revision = options.revision