changeset 112:a67f63c1b935

remove obsolete shell scripts
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Wed, 09 Feb 2011 14:31:22 -0500
parents 67c80f5c5f65
children fe09add4517b
files common-foot.sh common-head.sh
diffstat 2 files changed, 0 insertions(+), 109 deletions(-) [+]
line wrap: on
line diff
--- a/common-foot.sh	Fri Jul 09 02:44:01 2010 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-cat templates/sidebar-top.html
-for catname in `find data/by-category/ -mindepth 1 -type d | sed -e 's,data/by-category/,,' | sort` ; do
-	cat templates/sidebar-cat-item.html | sed -e "
-s|@@CATNAME@@|$catname|g
-"
-done
-cat templates/sidebar-middle.html
-for archname in `ls data/by-month/ | sort -r` ; do
-	archname=`basename $archname`
-
-	cat templates/sidebar-archive-item.html | sed -e "
-s|@@ARCHNAME@@|$archname|g
-s|@@ARCHDESC@@|`arch_date $archname`|g
-"
-done
-
-cat templates/sidebar-bottom.html
-cat templates/footer.html
-
--- a/common-head.sh	Fri Jul 09 02:44:01 2010 -0400
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,90 +0,0 @@
-# usage: get_xattr <attrname> <filename>
-get_xattr()
-{
-	getfattr --only-values -n "user.$1" "$2" 2> /dev/null
-}
-
-# usage: get_date <filename>
-get_date()
-{
-	date "+%B %e, %Y" -d "`get_xattr post_time "$1"`"
-}
-
-# usage: get_time <filename>
-get_time()
-{
-	date "+%H:%M" -d "`get_xattr post_time "$1"`"
-}
-
-# usage: get_date <fmt> <filename>
-get_rss_date()
-{
-	case "$1" in
-		rss2)
-			date "+%a, %d %b %Y %H:%M:%S +0000" -d "`get_xattr post_time "$2"`"
-			;;
-		atom)
-			date "+%Y-%m-%dT%H:%M:%SZ" -d "`get_xattr post_time "$2"`"
-			;;
-		*)
-			echo "???"
-			;;
-	esac
-}
-
-# usage: str_month <MM>
-str_month()
-{
-	case "$1" in
-		01) echo "january" ;;
-		02) echo "february" ;;
-		03) echo "march" ;;
-		04) echo "april" ;;
-		05) echo "may" ;;
-		06) echo "june" ;;
-		07) echo "july" ;;
-		08) echo "august" ;;
-		09) echo "september" ;;
-		10) echo "october" ;;
-		11) echo "november" ;;
-		12) echo "december" ;;
-		*)  echo "unknown" ;;
-	esac
-}
-
-# usage: arch_date <YYYYMM>
-arch_date()
-{
-	m=`expr substr "$1" 5 2`
-	echo "`str_month $m` `expr substr "$1" 1 4`"
-}
-
-# usage: arch_title_date <YYYYMM>
-arch_title_date()
-{
-	m=`expr substr "$1" 5 2`
-	echo "`expr substr "$1" 1 4` \&raquo; `str_month $m`"
-}
-
-# usage: cat_post <filename>
-cat_post()
-{
-#/^<!--more-->$/ { exit; }
-#{ print "<br/>" }
-	cat "$1" | awk '
-BEGIN { par=1 }
-(par) { print "<p>"; par=0 }
-{ print $0 }
-/^$/ { print "</p>"; par=1; next }
-END { if (!par) print "</p>" }
-'
-}
-
-cat_post_preview()
-{
-	cat "$1" | head -1
-}
-
-[ -z "$CONTENT_TYPE" ] && CONTENT_TYPE="text/html"
-echo "Content-type: $CONTENT_TYPE"
-echo ""