diff options
author | Jari Aalto <jari.aalto@cante.net> | 1996-08-26 18:22:31 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:49 +0000 |
commit | 726f63884db0132f01745f1fb4465e6621088ccf (patch) | |
tree | 6c2f7765a890a97e0e513cb539df43283a8f7c4d /support/srcdir | |
download | android_external_bash-726f63884db0132f01745f1fb4465e6621088ccf.tar.gz android_external_bash-726f63884db0132f01745f1fb4465e6621088ccf.tar.bz2 android_external_bash-726f63884db0132f01745f1fb4465e6621088ccf.zip |
Imported from ../bash-1.14.7.tar.gz.
Diffstat (limited to 'support/srcdir')
-rwxr-xr-x | support/srcdir | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/support/srcdir b/support/srcdir new file mode 100755 index 0000000..9d8ccd7 --- /dev/null +++ b/support/srcdir @@ -0,0 +1,13 @@ +#! /bin/sh +# +# srcdir - print out the absolute pathname of the top of the bash source +# tree. Used for getting the right value to makes in subdirectories +# + +case "$1" in +'.'|./) pwd ;; +./*|..*) echo `pwd`/"$1" ;; +*) echo "$1" ;; +esac + +exit 0 |