Added gitignore entries needed to ignore derived objects generated from full build...
[bash.git] / examples / scripts.noah / bash.sub.bash
blob2504459753d6ee988bbf98e67e2d622e50fcc4ad
1 # bash.sub.bash --- stub for standalone shell scripts using bash library
2 # Author: Noah Friedman <friedman@prep.ai.mit.edu>
3 # Created: 1992-07-13
4 # Last modified: 1993-09-29
5 # Public domain
7 #:docstring bash.sub:
8 # Standard subroutines for bash scripts wishing to use "require" to load
9 # libraries.
11 # Usage: In each directory where a bash script that uses this script
12 # exists, place a copy of this script. Then, at the top of such scripts,
13 # put the command
15 # source ${0%/*}/bash.sub || exit 1
17 # Then you can use `require' to load packages.
19 #:end docstring:
21 default_FPATH="~friedman/etc/init/bash/functions/lib"
23 source "${default_FPATH}/feature"
24 REQUIRE_FAILURE_FATAL=t
26 FPATH="${FPATH-${default_FPATH}}"
28 # bash.sub.bash ends here