]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - bin/pagegen.py
fix up mobile html meta tag
[irc/quakenet/qwebirc.git] / bin / pagegen.py
index 6dc20604c5fb4478d1dda11b3105f6444d57ef33..a4b9f5d558443c0ccb9954aa911675481939ae19 100755 (executable)
@@ -27,7 +27,7 @@ def csslist(name, debug, gen=False):
 
 def _gethgid():
   try:
-    p = subprocess.Popen(["hg", "id"], stdout=subprocess.PIPE)
+    p = subprocess.Popen(["hg", "id"], stdout=subprocess.PIPE, shell=os.name == "nt")
   except Exception, e:
     if hasattr(e, "errno") and e.errno == 2:
       raise HGException, "unable to execute"
@@ -68,6 +68,7 @@ def producehtml(name, debug):
   <base />
   <title>%s (qwebirc)</title>
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
+  <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
   <link rel="shortcut icon" type="image/png" href="%simages/favicon.png"/>
 %s%s
 %s