| Line | |
|---|
| 1 | # bash.sub.bash --- stub for standalone shell scripts using bash library
|
|---|
| 2 | # Author: Noah Friedman <[email protected]>
|
|---|
| 3 | # Created: 1992-07-13
|
|---|
| 4 | # Last modified: 1993-09-29
|
|---|
| 5 | # Public domain
|
|---|
| 6 |
|
|---|
| 7 | #:docstring bash.sub:
|
|---|
| 8 | # Standard subroutines for bash scripts wishing to use "require" to load
|
|---|
| 9 | # libraries.
|
|---|
| 10 | #
|
|---|
| 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
|
|---|
| 14 | #
|
|---|
| 15 | # source ${0%/*}/bash.sub || exit 1
|
|---|
| 16 | #
|
|---|
| 17 | # Then you can use `require' to load packages.
|
|---|
| 18 | #
|
|---|
| 19 | #:end docstring:
|
|---|
| 20 |
|
|---|
| 21 | default_FPATH="~friedman/etc/init/bash/functions/lib"
|
|---|
| 22 |
|
|---|
| 23 | source "${default_FPATH}/feature"
|
|---|
| 24 | REQUIRE_FAILURE_FATAL=t
|
|---|
| 25 |
|
|---|
| 26 | FPATH="${FPATH-${default_FPATH}}"
|
|---|
| 27 |
|
|---|
| 28 | # bash.sub.bash ends here
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.