コード例 #1
0
ファイル: mdoc.py プロジェクト: ChenglongWang/divmbest
 def towiki(docdir, pagename):
     pagenamewiki = pagename + ".wiki"
     runcmd("cd %s ; mvs update %s" % (docdir, pagenamewiki))
     if verb:
         print "mdoc: converting", pagename, "to", pagenamewiki
     wikidoc(os.path.join(docdir, pagenamewiki), os.path.join(docdir, pagename))
     runcmd("cd %s ; mvs commit -M -m 'Documentation update' %s" % (docdir, pagenamewiki))
コード例 #2
0
 def towiki(docdir, pagename):
     pagenamewiki = pagename + '.wiki'
     runcmd("cd %s ; mvs update %s" % (docdir, pagenamewiki))
     if verb:
         print "mdoc: converting", pagename, "to", pagenamewiki
     wikidoc(os.path.join(docdir, pagenamewiki), 
             os.path.join(docdir, pagename))
     runcmd("cd %s ; mvs commit -M -m 'Documentation update' %s" % (docdir, pagenamewiki))
コード例 #3
0
                path[p] = {}
            path = path[p]
        path[funcname] = 0

    overviewname = os.path.join(docdir, "index.html")
    pagelines = overviewpage(pagegroups, mfiles, '')
    pagelines.insert(0, "== Documentation ==\n")
    wikiname = "Doc_index.wiki"
    f = open(overviewname, 'w')
    f.writelines(pagelines)
    f.close()

    try:
        runcmd("mvs update %s" % wikiname)
        print "Converting", overviewname, "to", wikiname
        wikidoc(wikiname, overviewname)
        runcmd("mvs commit -M -m 'Documentation update' %s" % wikiname)
    except (KeyboardInterrupt, SystemExit):
        sys.exit(1)

    # checkin files to wiki
    for funcname in mfiles:
        (mname, htmlname, linkname, shortdesc) = mfiles[funcname]
        wikiname = linkname + ".wiki"
        try:
            runcmd("mvs update %s" % wikiname)
            print "Converting", htmlname, "to", wikiname
            wikidoc(wikiname, htmlname)
            runcmd("mvs commit -M -m 'Documentation update' %s" % wikiname)
            # possibly add -M for minor revision
        except (KeyboardInterrupt, SystemExit):
コード例 #4
0
ファイル: mdocall.py プロジェクト: frankfan007/pynopticon
                path[p] = {}
            path = path[p]
        path[funcname] = 0

    overviewname = os.path.join(docdir, "index.html")
    pagelines = overviewpage(pagegroups, mfiles, '')
    pagelines.insert(0, "== Documentation ==\n")
    wikiname = "Doc_index.wiki"
    f = open(overviewname, 'w')
    f.writelines(pagelines)
    f.close()

    try:
        runcmd("mvs update %s" % wikiname)
        print "Converting", overviewname, "to", wikiname
        wikidoc(wikiname, overviewname)
        runcmd("mvs commit -M -m 'Documentation update' %s" % wikiname)
    except (KeyboardInterrupt, SystemExit):
        sys.exit(1)

    # checkin files to wiki
    for funcname in mfiles:
        (mname, htmlname, linkname, shortdesc) = mfiles[funcname]
        wikiname = linkname + ".wiki"
        try:
            runcmd("mvs update %s" % wikiname)
            print "Converting", htmlname, "to", wikiname
            wikidoc(wikiname, htmlname)
            runcmd("mvs commit -M -m 'Documentation update' %s" % wikiname)
            # possibly add -M for minor revision
        except (KeyboardInterrupt, SystemExit):