2008-01-18 07:52:04 -01:00
|
|
|
#!/bin/sh
|
2007-11-11 12:45:34 -01:00
|
|
|
|
2009-01-30 19:24:01 -01:00
|
|
|
# lh(1) - generic live-helper wrapper
|
2009-01-26 15:39:27 -01:00
|
|
|
# Copyright (C) 2006-2009 Daniel Baumann <daniel@debian.org>
|
2007-11-11 12:45:34 -01:00
|
|
|
#
|
2009-01-30 19:24:01 -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
|
2009-01-26 15:07:40 -01:00
|
|
|
. "${LH_BASE:-/usr/share/live-helper}"/functions.sh
|
2007-11-11 12:45:34 -01:00
|
|
|
|
|
|
|
# Setting static variables
|
2009-01-15 01:37:42 -01:00
|
|
|
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)
|
2009-01-30 16:16:59 -01:00
|
|
|
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
|