try to change rights of peps to rw-rw-r--
This commit is contained in:
parent
5b68dc2f37
commit
638555dec7
|
@ -17,6 +17,9 @@ import cgi, glob, os, re, sys
|
||||||
# this doesn't validate -- you cannot use <hr> and <h3> inside <pre>
|
# this doesn't validate -- you cannot use <hr> and <h3> inside <pre>
|
||||||
# tags. but if I change that, the result doesn't look very nice...
|
# tags. but if I change that, the result doesn't look very nice...
|
||||||
|
|
||||||
|
HOST = "shell.sourceforge.net" # host for update
|
||||||
|
HDIR = "/home/groups/python/htdocs/peps" # target host directory
|
||||||
|
|
||||||
DTD = ('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"\n'
|
DTD = ('<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"\n'
|
||||||
' "http://www.w3.org/TR/REC-html40/loose.dtd">')
|
' "http://www.w3.org/TR/REC-html40/loose.dtd">')
|
||||||
|
|
||||||
|
@ -90,6 +93,8 @@ def fixfile(infile, outfile):
|
||||||
fo.write("</pre>\n")
|
fo.write("</pre>\n")
|
||||||
fo.write("</body>\n")
|
fo.write("</body>\n")
|
||||||
fo.write("</html>\n")
|
fo.write("</html>\n")
|
||||||
|
fo.close()
|
||||||
|
os.chmod(outfile, 0664)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
@ -110,8 +115,8 @@ def main():
|
||||||
raise "Syntax: "+sys.argv[0]+" [-n] [sf_username]"
|
raise "Syntax: "+sys.argv[0]+" [-n] [sf_username]"
|
||||||
|
|
||||||
if update:
|
if update:
|
||||||
os.system("scp pep-*.html " + username
|
os.system("scp pep-*.html " + username + HOST + ":" + HDIR)
|
||||||
+ "shell.sourceforge.net:/home/groups/python/htdocs/peps")
|
os.system("ssh " + username + HOST + " chmod 664 " + HDIR + "/*")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Reference in New Issue