[Python-checkins] CVS: python/nondist/peps pep2html.py,1.3,1.4

Peter Schneider-Kamp python-dev@python.org
Mon, 24 Jul 2000 21:12:30 -0700


Update of /cvsroot/python/python/nondist/peps
In directory slayer.i.sourceforge.net:/tmp/cvs-serv2859

Modified Files:
	pep2html.py 
Log Message:

try to change rights of peps to rw-rw-r--



Index: pep2html.py
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep2html.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** pep2html.py	2000/07/25 03:51:44	1.3
--- pep2html.py	2000/07/25 04:12:28	1.4
***************
*** 18,21 ****
--- 18,24 ----
  # 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'
         '                      "http://www.w3.org/TR/REC-html40/loose.dtd">')
***************
*** 91,94 ****
--- 94,99 ----
      fo.write("</body>\n")
      fo.write("</html>\n")
+     fo.close()
+     os.chmod(outfile, 0664)
  
  
***************
*** 111,116 ****
  
      if update:
!         os.system("scp pep-*.html " + username
!                   + "shell.sourceforge.net:/home/groups/python/htdocs/peps")
  
  
--- 116,121 ----
  
      if update:
!         os.system("scp pep-*.html " + username + HOST + ":" + HDIR)
!         os.system("ssh " + username + HOST + " chmod 664 " + HDIR + "/*")