File: icalfilter

package info (click to toggle)
ical2html 2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 440 kB
  • ctags: 104
  • sloc: sh: 1,048; ansic: 670; makefile: 32
file content (24 lines) | stat: -rwxr-xr-x 419 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

# wrapper for use with help2man

set -e

basename="$(basename "$0")"
basedir="$(dirname "$0")"

case "$1" in
    --help)
	"$basedir/../../$basename" 2>&1
	;;
    --version)
	dpkg-parsechangelog | perl -nE '/^Version: +(?:\d+:)?([^ ]+)-/ and say $1'
	;;
    --description)
	echo "filter an iCalendar file based on class and/or category"
	;;
    *)
	echo 1>&2 "ERROR: unknown argument \"$1\""
	exit 1
	;;
esac