|
|
*/* | *\\*) ;; | */* | *\\*) ;; |
*) # Need to look in the PATH. | *) # Need to look in the PATH. |
if test "${PATH_SEPARATOR+set}" != set; then | if test "${PATH_SEPARATOR+set}" != set; then |
{ echo "#! /bin/sh"; echo "exit 0"; } > /tmp/conf$$.sh |
PATH_SEPARATOR=: |
chmod +x /tmp/conf$$.sh |
|
if (PATH="/nonexistent;/tmp"; conf$$.sh) >/dev/null 2>&1; then |
|
PATH_SEPARATOR=';' |
|
else |
|
PATH_SEPARATOR=: |
|
fi |
|
rm -f /tmp/conf$$.sh |
|
fi | fi |
save_IFS="$IFS"; IFS="$PATH_SEPARATOR" | save_IFS="$IFS"; IFS="$PATH_SEPARATOR" |
for dir in $PATH; do | for dir in $PATH; do |
|
|
cvs_dir=tmpcvs$$ | cvs_dir=tmpcvs$$ |
work_dir=tmpwrk$$ | work_dir=tmpwrk$$ |
mkdir "$cvs_dir" | mkdir "$cvs_dir" |
|
if [ $? -ne 0 ]; then |
|
echo "ERROR making $cvs_dir" |
|
exit 1 |
|
fi |
mkdir "$work_dir" | mkdir "$work_dir" |
|
if [ $? -ne 0 ]; then |
|
echo "ERROR making $work_dir" |
|
exit 1 |
|
fi |
CVSROOT="$srcdir/$cvs_dir" | CVSROOT="$srcdir/$cvs_dir" |
export CVSROOT | export CVSROOT |
unset CVS_CLIENT_LOG | unset CVS_CLIENT_LOG |
|
|
# original - too great risk of version mismatch. | # original - too great risk of version mismatch. |
if test -z "$force"; then | if test -z "$force"; then |
mismatch= | mismatch= |
mismatchfile="${TMPDIR-/tmp}"/autopoint$$.diff |
mismatchfile="`mktemp -t autopoint.diff.XXXXXX`" |
rm -f "$mismatchfile" |
|
for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do | for file in `find "$work_dir/archive" -type f -print | sed -e "s,^$work_dir/archive/,," | LC_ALL=C sort`; do |
func_destfile "$file" | func_destfile "$file" |
if test -n "$destfile"; then | if test -n "$destfile"; then |
|
|
# Recompute base. It was clobbered by the recursive call. | # Recompute base. It was clobbered by the recursive call. |
base=`echo "$1" | sed -e 's,/[^/]*$,,'` | base=`echo "$1" | sed -e 's,/[^/]*$,,'` |
test -d "$base" || { echo "Creating directory $base"; mkdir "$base"; } | test -d "$base" || { echo "Creating directory $base"; mkdir "$base"; } |
|
if [ $? -ne 0 ]; then |
|
echo "ERROR making directory $base" |
|
exit 1 |
|
fi |
fi | fi |
} | } |
| |