From df7ea46ae924e19ef59e10e6dc91926eb6f9c3ed Mon Sep 17 00:00:00 2001 From: fosslinux Date: Mon, 29 Apr 2019 13:10:38 +1000 Subject: [PATCH] remove obsolete not working examples directory --- debian/rules | 1 - examples/counter/counter.sh | 25 ------------------------- 2 files changed, 26 deletions(-) delete mode 100755 examples/counter/counter.sh diff --git a/debian/rules b/debian/rules index cc265ff..cd85559 100755 --- a/debian/rules +++ b/debian/rules @@ -57,7 +57,6 @@ binary-arch: build install dh_testroot dh_installchangelogs ChangeLog dh_installdocs -# dh_installexamples # dh_install # dh_installmenu dh_installdebconf diff --git a/examples/counter/counter.sh b/examples/counter/counter.sh deleted file mode 100755 index 5742603..0000000 --- a/examples/counter/counter.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/sh - -## -## A simple visitor counter to use with gophermaps -## -## Usage: counter.sh
 
-##
-
-# Figure out a safe file to keep our counter
-HASH=`echo "$SELECTOR" | md5sum | cut -d" " -f1`
-FILE=/var/tmp/gopher-counter-$HASH
-
-# Get count and the previous visitors IP address
-COUNT="`cut -d' ' -f1 $FILE`"
-OLD_ADDR="`cut -d' ' -f2 $FILE`"
-
-# Increase counter only if the user is new
-if [ "$OLD_ADDR" != "$REMOTE_ADDR" ]; then
-	COUNT=$(( COUNT + 1 ))
-	echo "$COUNT $REMOTE_ADDR" > $FILE
-fi
-
-# Output counter message
-echo "$1$COUNT$2"
-