mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
check for repocopy snafus
This commit is contained in:
parent
c4e4ab92e2
commit
9a38c1b8b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=261126
1 changed files with 43 additions and 0 deletions
43
Tools/scripts/notconnected
Executable file
43
Tools/scripts/notconnected
Executable file
|
@ -0,0 +1,43 @@
|
|||
#!/bin/sh
|
||||
|
||||
# $FreeBSD$
|
||||
#
|
||||
# MAINTAINER= pgollucci@FreeBSD.org
|
||||
# all committers may commit to this file without approval
|
||||
|
||||
PATH=/rescue:$PATH
|
||||
|
||||
if [ -z "$PORTSDIR" ]; then
|
||||
PORTSDIR=/usr/ports
|
||||
fi
|
||||
|
||||
echo "****************** No entry for dir in category Makefile"
|
||||
#### dir -> Makefile
|
||||
cd $PORTSDIR
|
||||
|
||||
ports=$(find $PORTSDIR -type d -depth 2 | egrep -v 'CVS|.git|Tools')
|
||||
for port in $ports; do
|
||||
cat=$(echo $port |awk -F'/' '{print $1}')
|
||||
portname=$(echo $port |awk -F'/' '{print $2}')
|
||||
|
||||
rc=$(grep -c " $portname$" $PORTSDIR/$cat/Makefile)
|
||||
if [ $rc -ne 1 ]; then
|
||||
echo "$cat/$portname"
|
||||
fi
|
||||
done
|
||||
|
||||
echo "***************** No corresponding dir for category Makefile entry"
|
||||
#### Makefile -> dir
|
||||
cd $PORTSDIR
|
||||
categories=$(ls -1d * |grep -v [A-Z] |grep -v distfiles)
|
||||
|
||||
for cat in $categories; do
|
||||
cd $PORTSDIR/$cat
|
||||
ports=$(grep SUBDIR Makefile |awk '{print $3}')
|
||||
for port in $ports; do
|
||||
if [ ! -d $port ]; then
|
||||
echo "$cat/$port"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
Loading…
Add table
Reference in a new issue