From 8ee2f98e9c993dbc0a956466a3df048320ccdb94 Mon Sep 17 00:00:00 2001 From: John Polstra Date: Sun, 18 May 1997 02:27:19 +0000 Subject: 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. --- net/cvsup-mirror/pkg-install | 12 ++++++++++-- net/cvsup-mirror/scripts/configure | 8 +++++++- 2 files changed, 17 insertions(+), 3 deletions(-) (limited to 'net/cvsup-mirror') 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 </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 diff --git a/net/cvsup-mirror/scripts/configure b/net/cvsup-mirror/scripts/configure index 6854f90ad8f0..58928c8a92ea 100644 --- a/net/cvsup-mirror/scripts/configure +++ b/net/cvsup-mirror/scripts/configure @@ -40,6 +40,12 @@ ask_distrib() { subdir=$3 desc=$4 if yesno "Do you wish to mirror the ${desc}" y; then + if [ "${subdir}" != "." ]; then + cat <