]> Pileus Git - vpaste/commitdiff
google
authorAndy Spencer <andy753421@gmail.com>
Sat, 10 Oct 2009 15:37:44 +0000 (15:37 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sat, 10 Oct 2009 15:37:44 +0000 (15:37 +0000)
2html-et.patch [deleted file]
2html.patch [new file with mode: 0644]
index.cgi
robots.txt [new file with mode: 0644]
sitemap.xml [new file with mode: 0644]

diff --git a/2html-et.patch b/2html-et.patch
deleted file mode 100644 (file)
index 50d01b8..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
---- /usr/share/vim/vim72/syntax/2html.vim      2009-06-16 06:24:31.000000000 +0000
-+++ /tmp/2html.vim     2009-10-06 23:05:11.000000000 +0000
-@@ -192,7 +192,6 @@
- let s:old_report = &report
- let s:old_search = @/
- set notitle noicon
--setlocal et
- set report=1000000
- " Split window to create a buffer with the HTML file.
-@@ -393,12 +392,16 @@
-       " Expand tabs
-       let s:expandedtab = strpart(s:line, s:startcol - 1, s:col - s:startcol)
--      let idx = stridx(s:expandedtab, "\t")
--      while idx >= 0
--      let i = &ts - ((idx + s:startcol - 1) % &ts)
--      let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '')
--      let idx = stridx(s:expandedtab, "\t")
--      endwhile
-+      if &et
-+        let idx = stridx(s:expandedtab, "\t")
-+        while idx >= 0
-+          let i = &ts - ((idx + s:startcol - 1) % &ts)
-+          let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '')
-+          let idx = stridx(s:expandedtab, "\t")
-+        endwhile
-+      else
-+        setlocal isprint+=9
-+      endif
-       " Output the text with the same synID, with class set to {s:id_name}
-       let s:id = synIDtrans(s:id)
diff --git a/2html.patch b/2html.patch
new file mode 100644 (file)
index 0000000..ef65e22
--- /dev/null
@@ -0,0 +1,42 @@
+--- /home/andy/.vim/syntax/2html.vim   2009-10-10 15:32:39.000000000 +0000
++++ /usr/share/vim/vim72/syntax/2html.vim      2009-06-16 06:24:31.000000000 +0000
+@@ -192,6 +192,7 @@
+ let s:old_report = &report
+ let s:old_search = @/
+ set notitle noicon
++setlocal et
+ set report=1000000
+ " Split window to create a buffer with the HTML file.
+@@ -244,7 +245,7 @@
+ " HTML header, with the title and generator ;-). Left free space for the CSS,
+ " to be filled at the end.
+ exe "normal! a<html>\n\e"
+-exe "normal! a<head>\n<title>" . &titlestring . "</title>\n\e"
++exe "normal! a<head>\n<title>" . expand("%:p:~") . "</title>\n\e"
+ exe "normal! a<meta name=\"Generator\" content=\"Vim/" . v:version/100 . "." . v:version %100 . '"' . s:tag_close . "\n\e"
+ if s:html_encoding != ""
+   exe "normal! a<meta http-equiv=\"content-type\" content=\"text/html; charset=" . s:html_encoding . '"' . s:tag_close . "\n\e"
+@@ -392,16 +393,12 @@
+       " Expand tabs
+       let s:expandedtab = strpart(s:line, s:startcol - 1, s:col - s:startcol)
+-      if &et
+-        let idx = stridx(s:expandedtab, "\t")
+-        while idx >= 0
+-          let i = &ts - ((idx + s:startcol - 1) % &ts)
+-          let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '')
+-          let idx = stridx(s:expandedtab, "\t")
+-        endwhile
+-      else
+-        setlocal isprint+=9
+-      endif
++      let idx = stridx(s:expandedtab, "\t")
++      while idx >= 0
++      let i = &ts - ((idx + s:startcol - 1) % &ts)
++      let s:expandedtab = substitute(s:expandedtab, '\t', repeat(' ', i), '')
++      let idx = stridx(s:expandedtab, "\t")
++      endwhile
+       " Output the text with the same synID, with class set to {s:id_name}
+       let s:id = synIDtrans(s:id)
index f70abc72105569c80d916e67421d7e5ef098f7fa..56e87a03066492e6d224b0420fe154da5b39a1f0 100755 (executable)
--- a/index.cgi
+++ b/index.cgi
@@ -69,7 +69,8 @@ function do_print {
                HOME=/home/andy \
                screen -D -m ex -nXZ -i NONE -u vimrc \
                        '+set bexpr= fde= fdt= fex= inde= inex= key= pa= pexpr' \
-                       '+set iconstring= ruf= stl= tal= titlestring=' \
+                       '+set iconstring= ruf= stl= tal=' \
+                       "+set titlestring=$1\ -\ vpaste.net" \
                        '+set noml'     \
                        '+2d|'$trim     \
                        '+%s/\r//g'     \
@@ -192,7 +193,7 @@ cat - <<EOF
                <li><a href="index.cgi?ft=sh">index.cgi</a>
                    <a href="vimrc?ft=vim">vimrc</a>
                    <a href="htaccess?ft=apache">htaccess</a></li>
-               <li><a href="2html-et.patch?ft=diff">2html-et.patch</a></li>
+               <li><a href="2html.patch?ft=diff">2html.patch</a></li>
                <li><a href="https://lug.rose-hulman.edu/svn/misc/trunk/htdocs/vpaste/">Subversion</a></li>
                </ul>
 
diff --git a/robots.txt b/robots.txt
new file mode 100644 (file)
index 0000000..cf11ce6
--- /dev/null
@@ -0,0 +1,9 @@
+User-agent: *
+Allow: /$
+Allow: /2html.patch
+Allow: /htaccess
+Allow: /index.cgi
+Allow: /vimrc
+Allow: /vpaste
+Disallow: /
+Sitemap: http://vpaste.net/sitemap.xml
diff --git a/sitemap.xml b/sitemap.xml
new file mode 100644 (file)
index 0000000..eeb399b
--- /dev/null
@@ -0,0 +1,18 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
+                           http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
+       <url>
+               <loc>http://vpaste.net/</loc>
+               <priority>1.0</priority>
+       </url>
+       <url>
+               <loc>http://vpaste.net/vpaste?ft=sh</loc>
+               <priority>0.9</priority>
+       </url>
+       <url>
+               <loc>http://vpaste.net/index.cgi?ft=sh</loc>
+               <priority>0.8</priority>
+       </url>
+</urlset>