1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-23 06:35:34 +00:00

remove obsolete not working examples directory

This commit is contained in:
fosslinux 2019-04-29 13:10:38 +10:00
parent 0ea607c6af
commit df7ea46ae9
2 changed files with 0 additions and 26 deletions

1
debian/rules vendored
View File

@ -57,7 +57,6 @@ binary-arch: build install
dh_testroot
dh_installchangelogs ChangeLog
dh_installdocs
# dh_installexamples
# dh_install
# dh_installmenu
dh_installdebconf

View File

@ -1,25 +0,0 @@
#!/bin/sh
##
## A simple visitor counter to use with gophermaps
##
## Usage: counter.sh <pre message> <post message>
##
# 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"