summaryrefslogtreecommitdiff
path: root/net/cvsup-mirror/pkg-install
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1997-05-18 02:27:19 +0000
committerJohn Polstra <jdp@FreeBSD.org>1997-05-18 02:27:19 +0000
commit8ee2f98e9c993dbc0a956466a3df048320ccdb94 (patch)
treee8a1fe075890560a0b1868f969a5e247d3acf930 /net/cvsup-mirror/pkg-install
parentUpdate for CVSup version 15.0 (previous was 14.1.1). (diff)
Check to make sure that the "gnats" subdirectory is a true
subdirectory, and not a symbolic link. Update the reported size of the CVS repository to reflect current reality.
Notes
Notes: svn path=/head/; revision=6482
Diffstat (limited to 'net/cvsup-mirror/pkg-install')
-rw-r--r--net/cvsup-mirror/pkg-install12
1 files changed, 10 insertions, 2 deletions
diff --git a/net/cvsup-mirror/pkg-install b/net/cvsup-mirror/pkg-install
index ef180f4b5d61..53f97b7f98d6 100644
--- a/net/cvsup-mirror/pkg-install
+++ b/net/cvsup-mirror/pkg-install
@@ -50,11 +50,19 @@ install_links() {
path=${dir}/${subdir}
fi
( cd ${prefixes} || exit
- test -d ${path} || mkdir -p ${path} || exit )
+ if [ "x${subdir}" != "x." -a -h ${path} ]; then
+ cat <<EOF
+"${subdir}" must be a true subdirectory of "${dir}", not a symbolic link.
+Please remove the symbolic link and/or configure again using the true
+directory path to "${subdir}".
+EOF
+ exit 1
+ fi
+ test -d ${path} || mkdir -p ${path} || exit ) || exit
if ! expr "${chmods_done}" : ".* ${path} " >/dev/null 2>&1; then
echo -n " Making the ${path} tree world-readable ..."
( chdir ${prefixes} || exit
- chmod -R a+rX ${path} || exit )
+ chmod -R a+rX ${path} || exit ) || exit
echo " done."
chmods_done="${chmods_done}${path} "
fi