summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2012-09-28 23:29:25 (EDT)
committer P. J. McDermott <pjm@nac.net>2012-09-28 23:29:25 (EDT)
commit7f8cb02cf45f0fa6dee20d012436d424f7a88c62 (patch)
tree8718591755559d2d20281ceb01bccc2785e99ce8
parent26c4d0b3614a3ceff090ecd0c0070a62370b3856 (diff)
Improve source directory detection.
* Eliminate unnecessary "dirname" command. * Support whitespace in source directory path.
-rwxr-xr-xconfigure3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure b/configure
index b9eb2ac..fa80210 100755
--- a/configure
+++ b/configure
@@ -23,8 +23,7 @@ package_name='opkbuild'
package_version='3.0.0'
package_description='OPK Build System'
-srcdir=$(dirname "${0}")
-srcdir=$(cd ${srcdir} && pwd)
+srcdir="$(cd "${0%/*}" && pwd)"
prefix='/usr/local'
bindir='$(prefix)/bin'
libdir='$(prefix)/lib'