URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [bare/] [build-tools] - Rev 1026
Go to most recent revision | Compare with Previous | Blame | View Log
## build-tools,v 1.1 1998/06/27 20:01:28 joel Exp## Tools to help doing build scripts. Adapted from Joel's bit# script.### USERCHANGE - uncomment this if you want to watch the commands.## set -xstart=`date`## Common exit routine for this script so we can print the starting# and ending times.#my_exit(){stop=`date`echoecho "Started: " $startecho "Finished: " $stopexit $1}## Handle a fatal error.#fatal_error(){echo "ERROR: $*" >&2my_exit 1}## Checks the status returned by executables and exits if it is non-zero.#check_fatal(){if [ $1 -ne 0 ] ; thenshiftfatal_error $*fi}## Test for a valid path, exit if not found#test_path(){test -d $* || fatal_error "cannot find $*"return 0}## Create a directory and check it was made correctly.#checked_mkdir(){mkdir -p $1check_fatal $? "unable to make directory $1"return 0}
Go to most recent revision | Compare with Previous | Blame | View Log
