ADDED mttroot/mtt/lib/rep/mtt_rep_diy Index: mttroot/mtt/lib/rep/mtt_rep_diy ================================================================== --- /dev/null +++ mttroot/mtt/lib/rep/mtt_rep_diy @@ -0,0 +1,138 @@ +#! /bin/sh + +rep_name="diy" + +help_message=" + A representation you can create all by yourself! + + The purpose of this representation is to help in the creation of a new DIY rep structure. + Eventually it should form a template for creating new representations. +" + +non_standard_options=" + --crash: make the computer crash, wiping the hard drive in the process + --recover: attempt to recover data after crash (by crying very loudly for 10 minutes) +" + +texi_message=" +This message should be really, really helpful. +@node Stuff, More Stuff, Top, Top +Stuff! +@node More Stuff, Top, Top, Top +More Stuff +" + +# function definitions for non-standard options (should have same name) +crash () { + touch .crash + echo "IDIOT!" + exit 99 +} +recover () { + if [ -f .crash ]; then + cat < /dev/null || warn "option --${option} unknown" + shift + done + export Language="$*" + fi +} + +process_arguments $* +if [ ! "${Language}" ]; then + error "no language specified" ${NoLanguageSpecified} +fi + +process_language ${Language} +