[hackers] [genosite] upgrading to most recent state in use || Anselm R Garbe

From: <hg_AT_suckless.org>
Date: Sat, 20 Sep 2008 08:50:00 +0000 (UTC)

changeset: 41:28f3d3193b28
tag: tip
user: Anselm R Garbe <garbeam_AT_gmail.com>
date: Sat Sep 20 09:49:55 2008 +0100
files: official_generate official_update upstream_check upstream_generate
description:
upgrading to most recent state in use

diff -r 6df1fe40e59a -r 28f3d3193b28 official_generate
--- a/official_generate Tue Jul 15 15:48:43 2008 +0100
+++ b/official_generate Sat Sep 20 09:49:55 2008 +0100
@@ -28,13 +28,14 @@
                 esac
         done
         cat <<END
+ <li>&nbsp;</li>
         </ul>
                 </div>
 END
 }
 
 page() {
- mtime=`ls -l $1$2.$EXT | awk '{ print $6 " @ " $7 }'`
+ mtime=`ls -l $1$2.$EXT | awk '{ print $6 " at " $7 }'`
         title=`echo $4 | sed 's/.html//'`
         cat <<END
 <!DOCTYPE HTML>
@@ -47,23 +48,31 @@
 <body>
 <div id="container">
         <div id="main">
+ <div id="path">$3</a></div>
                 <div id="menu">
                 <ul>
- <li class="path">$3</a></li>
 END
         menu $1 $2
 cat <<END
                 <div id="content">
- <div class="edit">$mtime</div>
 END
         cat $1$2.$EXT | tr -d '\r' | $FMT
         cat <<END
                 </div>
         </div>
         <div id="footer">
- &copy; 2003 - 2008 suckless.org community rss atom <a href='http://reddit.com/submit?phase=2&url=$URL$4'>reddit</a>
+ &copy; 2003 - 2008 suckless.org community rss atom <a href='http://reddit.com/submit?phase=2&url=$URL$4'>reddit</a> &nbsp;&nbsp; generated: $mtime
         </div>
 </div>
+<script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+ var pageTracker = _gat._getTracker("UA-4071820-1");
+ pageTracker._initData();
+ pageTracker._trackPageview();
+</script>
 </body></html>
 END
 }
@@ -97,4 +106,4 @@
         cd $1
 fi
 find . -type l | xargs rm -f
-process "./" "<a href='/'>wiki/" /
+process "./" "<a href='/'>scklss/" /
diff -r 6df1fe40e59a -r 28f3d3193b28 official_update
--- a/official_update Tue Jul 15 15:48:43 2008 +0100
+++ b/official_update Sat Sep 20 09:49:55 2008 +0100
@@ -7,8 +7,6 @@
         exit 0
 fi
 
-cd /official
-hg pull -u
 cd /tmp
 rm -rf official
 hg clone /official
diff -r 6df1fe40e59a -r 28f3d3193b28 upstream_check
--- a/upstream_check Tue Jul 15 15:48:43 2008 +0100
+++ b/upstream_check Sat Sep 20 09:49:55 2008 +0100
@@ -1,4 +1,4 @@
 #!/bin/sh
 touch /tmp/upstream_update
 chown www-data.www-data /tmp/upstream_update
-echo "Untrusted upstream website will be updated during the next 5 minutes."
+# echo "Untrusted upstream website will be updated during the next 5 minutes."
diff -r 6df1fe40e59a -r 28f3d3193b28 upstream_generate
--- a/upstream_generate Tue Jul 15 15:48:43 2008 +0100
+++ b/upstream_generate Sat Sep 20 09:49:55 2008 +0100
@@ -28,13 +28,14 @@
                 esac
         done
         cat <<END
+ <li>&nbsp;</li>
         </ul>
                 </div>
 END
 }
 
 page() {
- mtime=`ls -l $1$2.$EXT | awk '{ print $6 " @ " $7 }'`
+ mtime=`ls -l $1$2.$EXT | awk '{ print $6 " at " $7 }'`
         title=`echo $4 | sed 's/.html//'`
         cat <<END
 <!DOCTYPE HTML>
@@ -47,28 +48,37 @@
 <body>
 <div id="container">
         <div id="main">
+ <div id="path">$3</a></div>
                 <div id="menu">
                 <ul>
- <li class="path">$3</a></li>
 END
         menu $1 $2
 cat <<END
                 <div id="content">
- <div class="edit">$mtime</div>
-<small>This is the UNTRUSTED upstream wiki version of suckless.org.<br/>
+<small>This is the PREVIEW upstream wiki version of suckless.org.<br/>
 We are <b>NOT RESPONSIBLE</b> for the content presented here, because it hasn't been approved yet.<br/>
-However we try our best to prevent any abuse of this UNTRUSTED upstream wiki.</small>
+However we try our best to prevent any abuse of this PREVIEW upstream wiki.</small>
 END
         cat $1$2.$EXT | tr -d '\r' | $FMT
         cat <<END
                 </div>
         </div>
         <div id="footer">
-This is the UNTRUSTED upstream wiki version of suckless.org.<br/>
+This is the PREVIEW upstream wiki version of suckless.org.<br/>
 We are <b>NOT RESPONSIBLE</b> for the content presented here, because it hasn't been approved yet.<br/>
-However we try our best to prevent any abuse of this UNTRUSTED upstream wiki.
+However we try our best to prevent any abuse of this PREVIEW upstream wiki.<br/>
+Generated: $mtime
         </div>
 </div>
+<script type="text/javascript">
+ var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
+ document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
+</script>
+<script type="text/javascript">
+ var pageTracker = _gat._getTracker("UA-4071820-1");
+ pageTracker._initData();
+ pageTracker._trackPageview();
+</script>
 </body></html>
 END
 }
@@ -102,4 +112,4 @@
         cd $1
 fi
 find . -type l | xargs rm -f
-process "./" "<a href='/'>UNTRUSTED/" /
+process "./" "<a href='/'>PREVIEW/" /
Received on Sat Sep 20 2008 - 08:50:00 UTC

This archive was generated by hypermail 2.2.0 : Sat Sep 20 2008 - 09:00:06 UTC