File: help

package info (click to toggle)
kernel-wedge 2.74%2Bsqueeze4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 680 kB
  • ctags: 10
  • sloc: perl: 319; sh: 269; makefile: 21
file content (16 lines) | stat: -rwxr-xr-x 288 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
LIBDIR=/usr/share/kernel-wedge/commands
set -e
command=$1
if [ -z "$command" ]; then
	kernel-wedge
fi
if [ ! -x "$LIBDIR/$command" ]; then
	echo "No such command."
	exit 1
fi
if [ ! -e $LIBDIR/$command.txt ]; then
	echo "Undocumented command."
	exit
fi
cat $LIBDIR/$command.txt