live-build/helpers/lh

46 lines
785 B
Plaintext
Raw Normal View History

2008-01-18 07:52:04 -01:00
#!/bin/sh
2007-11-11 12:45:34 -01:00
# lh(1) - generic live-helper wrapper
# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
2007-11-11 12:45:34 -01:00
#
# live-helper comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
# This is free software, and you are welcome to redistribute it
# under certain conditions; see COPYING for details.
2007-11-11 12:45:34 -01:00
set -e
# Including common functions
. "${LH_BASE:-/usr/share/live-helper}"/functions.sh
2007-11-11 12:45:34 -01:00
# Setting static variables
DESCRIPTION="$(Echo 'utility to build Debian Live systems')"
2007-11-11 12:45:34 -01:00
HELP="FIXME"
USAGE="FIXME"
case "${1}" in
-h|--help)
Man
2007-11-11 12:45:34 -01:00
;;
-u|--usage)
Usage
;;
-v|--version)
Version
;;
*)
2008-11-02 09:29:09 -01:00
COMMAND="${1}"
shift
if [ -x "$(which lh_${COMMAND} 2>/dev/null)" ]
2007-11-11 12:45:34 -01:00
then
2008-11-02 09:29:09 -01:00
exec lh_"${COMMAND}" ${@}
2007-11-11 12:45:34 -01:00
else
Echo_error "no such helper"
exit 1
fi
;;
esac