diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-03-24 21:31:02 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2011-03-24 21:31:02 +0000 |
commit | 35a76f03cce3456a99e51ec3bc6db4aa626504a6 (patch) | |
tree | 5b81ebaf255ff7651e2ed5d6d025b0c5991a60bb /lib | |
parent | 058c2a2ac21b184d3ac0a3acbcc94c736f97b969 (diff) |
This script doesn't need write access to $curdir. Just check existence.
Fixes build on NFS src with no root access. ok jasper@
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libssl/generate_pkgconfig.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libssl/generate_pkgconfig.sh b/lib/libssl/generate_pkgconfig.sh index 4d04cc57423..bec8400108c 100644 --- a/lib/libssl/generate_pkgconfig.sh +++ b/lib/libssl/generate_pkgconfig.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $OpenBSD: generate_pkgconfig.sh,v 1.4 2011/01/25 20:53:18 naddy Exp $ +# $OpenBSD: generate_pkgconfig.sh,v 1.5 2011/03/24 21:31:01 matthieu Exp $ # # Generate pkg-config files for OpenSSL. @@ -26,8 +26,8 @@ while getopts "c:ko:" flag; do done [ -n "${curdir}" ] || usage -if [ ! -w "${curdir}" ]; then - echo "${0##*/}: ${curdir}: not found or not writable" +if [ ! -d "${curdir}" ]; then + echo "${0##*/}: ${curdir}: not found" exit 1 fi [ -n "${objdir}" ] || usage |