[hackers] diri: new tip (= 49)

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Mon, 05 Feb 2007 12:00:03 +0100

changeset: 49:f57f3178a7b6
tag: tip
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Mon Feb 05 11:56:36 2007 +0100
files: edit.rc remove.rc show.rc
description:
added cach control HTTP header and meta tags for browsers

changeset: 48:a70662dfea0b
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Fri Feb 02 14:14:43 2007 +0100
files: Makefile
description:
adding Makefile for dist tarball creation

changeset: 47:5801870aa1f4
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Fri Feb 02 14:11:08 2007 +0100
files: dirirc
description:
preparing diri-0.1 for shipping

diff -r 075dc5bdb318 -r f57f3178a7b6 Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile Mon Feb 05 11:56:36 2007 +0100
@@ -0,0 +1,15 @@
+VERSION=0.1
+
+dist: clean
+ @echo creating dist tarball
+ @mkdir -p diri-${VERSION}
+ @cp -R LICENSE README contrib/ *rc diri-${VERSION}
+ @tar -cf diri-${VERSION}.tar diri-${VERSION}
+ @gzip diri-${VERSION}.tar
+ @rm -rf diri-${VERSION}
+
+clean:
+ @echo cleaning
+ @rm -f diri-${VERSION}.tar.gz
+
+.PHONY: clean dist
diff -r 075dc5bdb318 -r f57f3178a7b6 dirirc
--- a/dirirc Fri Feb 02 14:04:40 2007 +0100
+++ b/dirirc Mon Feb 05 11:56:36 2007 +0100
@@ -1,14 +1,13 @@ ADDRESS=http://www.suckless.org
-ADDRESS=http://www.suckless.org
+ADDRESS=http://www.example.com
 DIRIDIR=/var/www/diri
 HASHCMD=sha1
 HASHPASSWD=94779b692fe5fd6c5adcf7e24216cf31a33d2fa8
 PLAN9=/usr/local/plan9
 PATH=$PLAN9/bin:$PATH
-SLOGAN='pr0n for code fetishists'
+SLOGAN='your slogan'
 URLDECODE=/usr/local/bin/urldecode.awk
 WIKIFMT=/usr/local/bin/markdown.pl
-# scripts
-SHOW=wiki # show.rc
-EDIT=edit # edit.rc
-REMOVE=remove # remove.rc
-SAVE=save # save.rc
+SHOW=show.rc
+EDIT=edit.rc
+REMOVE=remove.rc
+SAVE=save.rc
diff -r 075dc5bdb318 -r f57f3178a7b6 edit.rc
--- a/edit.rc Fri Feb 02 14:04:40 2007 +0100
+++ b/edit.rc Mon Feb 05 11:56:36 2007 +0100
@@ -16,12 +16,15 @@ if(test -d $DIRIDIR/$PATH_INFO) {
 }
 title=`{basename $PATH_INFO | sed 's/^[0-9]+_//; s/_/ /g'}
 cat <<END
+Cache-Control: no-cache
 Content-Type: text/html
 
 <!DOCTYPE HTML SYSTEM>
 <html>
         <head>
                 <title>$title</title>
+ <meta http-equiv="cache-control" content="no-cache">
+ <meta http-equiv="pragma" content="no-cache">
                 <meta name="author" content="Anselm R. Garbe">
                 <meta name="searchtitle" content="dwm wmii suck less">
                 <meta name="keywords" content="x11 dwm wmi wmii dmenu slock suck less window manager xlib">
diff -r 075dc5bdb318 -r f57f3178a7b6 remove.rc
--- a/remove.rc Fri Feb 02 14:04:40 2007 +0100
+++ b/remove.rc Mon Feb 05 11:56:36 2007 +0100
@@ -31,12 +31,15 @@ if(test $password) {
 }
 title=`{basename $PATH_INFO | sed 's/^[0-9]+_//; s/_/ /g'}
 cat <<END
+Cache-Control: no-cache
 Content-Type: text/html
 
 <!DOCTYPE HTML SYSTEM>
 <html>
         <head>
                 <title>$title</title>
+ <meta http-equiv="cache-control" content="no-cache">
+ <meta http-equiv="pragma" content="no-cache">
                 <meta name="author" content="Anselm R. Garbe">
                 <meta name="searchtitle" content="dwm wmii suck less">
                 <meta name="keywords" content="x11 dwm wmi wmii dmenu slock suck less window manager xlib">
diff -r 075dc5bdb318 -r f57f3178a7b6 show.rc
--- a/show.rc Fri Feb 02 14:04:40 2007 +0100
+++ b/show.rc Mon Feb 05 11:56:36 2007 +0100
@@ -52,12 +52,15 @@ ifs=$tmp
 ifs=$tmp
 title=`{basename $PATH_INFO | sed 's/^[0-9]+_//; s/_/ /g'}
 cat <<END
+Cache-Control: no-cache
 Content-Type: text/html
 
 <!DOCTYPE HTML SYSTEM>
 <html>
         <head>
                 <title>$title</title>
+ <meta http-equiv="cache-control" content="no-cache">
+ <meta http-equiv="pragma" content="no-cache">
                 <meta name="author" content="Anselm R. Garbe">
                 <meta name="searchtitle" content="dwm wmii suck less">
                 <meta name="keywords" content="x11 dwm wmi wmii dmenu slock suck less window manager xlib">
Received on Mon Feb 05 2007 - 12:00:03 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:54:54 UTC