home *** CD-ROM | disk | FTP | other *** search
- Short: global script status flag utility for If's
-
- BootFlag version 2.2 (FreeWare) by John Mosley
-
- Allows you to check a 32 bit status register, which you can easily manipulate,
- and return a "Warn" if your check matched. Docs and examples, source and
- executable included.
-
- Unix version only:
- The source I have used for the Unix version of BootFlag is available,
- also. Just compile it with "gcc" and no options. I call the executable "bf".
- There are a few differences between it and the Amiga version (the complete docs
- are in the standard lharc file). For one, the "x" character is used in the
- place of "$" to sigify that a number you're giving it is hexadecimal (due to
- the way csh, etc. bitch about not finding an environment variable). Also, the
- default BootFlag register file is defined by an environment variable called
- "BF_FILE", so make sure you set it. I suggest you use something like
- "~/.BootFlags". The last and final change for Unix is in the return codes.
- BootFlag doesn't really return anything using an exit() function; it just
- prints out a number to stdout that corresponds to the result. These codes
- are as follows: 1 = flag pattern matched, 0 = didn't match, -1 = error.
- Here is an example usage for it in a script file (using csh):
- if ( `bf check %101` == 1 ) echo "pattern matched"
-
- Email me, tell me what you think: jem3@engr.uark.edu
-