pgit.sh: Remove CVS support

Don't identify projects directory by a the presence of a correct CVS
subdirectory any longer.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2025-11-17 11:30:59 +01:00
commit b82d4249f9
2 changed files with 2 additions and 6 deletions

View file

@ -42,7 +42,7 @@ $(JWBDIR):
all: link-makefile.done all: link-makefile.done
link-makefile.done: | $(JWBDIR) link-makefile.done: | $(JWBDIR)
[ -L $(PROJECTS_MAKEFILE_NAME) ] || \ [ -L $(PROJECTS_MAKEFILE_NAME) ] || \
ln -sf `find $(JWBDIR) -type f -print0 | xargs -0 grep -l some-random-string-to-id-this-makefile` \ ln -sf `find $(JWBDIR) -name '*.mk' -print0 | xargs -0 grep -l some-random-string-to-id-this-makefile` \
$(PROJECTS_MAKEFILE_NAME) $(PROJECTS_MAKEFILE_NAME)
touch $@ touch $@
clean: clean.link-makefile clean: clean.link-makefile

View file

@ -31,7 +31,7 @@ config()
[ "$pdir" ] || { [ "$pdir" ] || {
# guess pdir # guess pdir
pdir=`pwd` pdir=`pwd`
while [ `cat $pdir/CVS/Repository 2>/dev/null` != proj ]; do while [ ! -r Makefile ] || ! grep -q some-random-string-to-id-this-makefile Makefile; do
[ "$pdir" = / ] && fatal "didn't find \"proj\" in directory components" [ "$pdir" = / ] && fatal "didn't find \"proj\" in directory components"
pdir=`dirname $pdir` pdir=`dirname $pdir`
done done
@ -96,10 +96,6 @@ commit()
fi fi
run_git -C $d commit "$@" run_git -C $d commit "$@"
done done
if [ "$do_cvs" = true -a -d CVS ]; then
cvs commit "$@"
fi
)} )}
clone() clone()