Author: jue Date: 2006-10-03 12:28:02 +0200 (Tue, 03 Oct 2006) New Revision: 1992 Modified: tools/prt-utils/trunk/lib/prtverify/30_invalid_dirs.awk tools/prt-utils/trunk/prtverify.in Log: prtverify: new rule to find localized man-pages, minor improvement for start script Modified: tools/prt-utils/trunk/lib/prtverify/30_invalid_dirs.awk =================================================================== --- tools/prt-utils/trunk/lib/prtverify/30_invalid_dirs.awk 2006-10-03 10:17:50 UTC (rev 1991) +++ tools/prt-utils/trunk/lib/prtverify/30_invalid_dirs.awk 2006-10-03 10:28:02 UTC (rev 1992) @@ -1,7 +1,7 @@ # # 30_invalid_dirs.awk # -# Version 0.1.2 - 2006-07-16 +# Version 0.1.3 - 2006-09-24 # J�rgen Daubert <jue at jue dot li> @@ -12,6 +12,7 @@ invalid_dirs[3] = "^usr/share/locale/$" invalid_dirs[4] = "^usr/info/$" invalid_dirs[5] = "^usr/libexec/$" + invalid_dirs[6] = "^usr/man/../$" } Modified: tools/prt-utils/trunk/prtverify.in =================================================================== --- tools/prt-utils/trunk/prtverify.in 2006-10-03 10:17:50 UTC (rev 1991) +++ tools/prt-utils/trunk/prtverify.in 2006-10-03 10:28:02 UTC (rev 1992) @@ -1,7 +1,7 @@ #!/bin/sh # # prtverify -# Version 0.4.0 - 2006-09-02 +# Version 0.4.1 - 2006-09-28 # J�rgen Daubert <jue at jue dot li> @@ -21,7 +21,7 @@ } perror() { - echo "===== Error: $1" > /dev/stderr + echo "===== Error: $1" > /dev/stderr exit -1 } @@ -47,8 +47,7 @@ perror "$dir is not a directory" continue fi - stat $dir/*/Pkgfile > /dev/null 2>&1 - if [ $? -ne 0 ]; then + if [ -z "$(eval echo "$dir/*/Pkgfile")" ]; then perror "$dir is not a CRUX port-collection directory" fi done @@ -160,6 +159,7 @@ ### Main +shopt -s nullglob trap "cleanup" SIGHUP SIGINT SIGQUIT SIGTERM main "$@"