prism2.device: Compiler delint
[AROS.git] / workbench / c / shellcommands / Lab.c
blob47c74486c5558c1f804ca2008290d502af9b9ce2
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /******************************************************************************
11 NAME
13 Lab
15 SYNOPSIS
17 LOCATION
21 FUNCTION
23 Declares a label in a script file. This label may be referred to in a
24 Skip command.
26 INPUTS
28 RESULT
30 NOTES
32 EXAMPLE
34 If NOT EXISTS S:User-Startup
35 Skip NoUserSeq
36 EndIf
38 FailAt 20
39 Execute S:User-Startup
40 Quit
42 Lab NoUserSeq
43 Echo "No User-Startup found"
45 BUGS
47 SEE ALSO
49 Skip
51 INTERNALS
53 HISTORY
55 09.03.2000 SDuvan implemented
57 ******************************************************************************/
59 #include <proto/dos.h>
60 #include <dos/dos.h>
61 #include <dos/dosextens.h>
62 #include "dos_commanderrors.h"
64 #include <aros/shcommands.h>
66 AROS_SH0(Lab,41.1)
68 AROS_SHCOMMAND_INIT
70 struct CommandLineInterface *cli = Cli();
73 if((cli != NULL) && (cli->cli_CurrentInput != cli->cli_StandardInput))
75 return RETURN_OK; /* Normal operation: do nothing! */
77 else
79 PrintFault(ERROR_SCRIPT_ONLY, "Lab");
81 return RETURN_ERROR;
84 AROS_SHCOMMAND_EXIT