generate trimmed list using the Makefile. Ensure the same method is

used to remove comments, and (more importantly) pick up default
canonical package names, useful for ordering and removing duplicates.
This commit is contained in:
espie 2001-04-22 16:16:42 +00:00
parent ac8e5b173a
commit afc9760354

View File

@ -1,6 +1,6 @@
#!/bin/sh
# $OpenBSD: check-plist,v 1.1 2001/04/19 16:47:34 espie Exp $
# $OpenBSD: check-plist,v 1.2 2001/04/22 16:16:42 espie Exp $
# Copyright (c) 2001
# Marc Espie. All rights reserved.
# Redistribution and use in source and binary forms, with or without
@ -47,8 +47,8 @@ trimmed="$initial.trimmed"
: ${PORTSDIR:=/usr/ports}
cd ${PORTSDIR}
make ECHO_MSG='echo >&2' SUBDIRLIST=$initial package-dir-depends >$depends
sed -e 's,[ ]*\#.*,,' -e '/^[ ]*$/d' $initial >$trimmed
make ECHO_MSG='echo >&2' SUBDIRLIST=$initial show=FULLPKGPATH >$trimmed
make ECHO_MSG='echo >&2' SUBDIRLIST=$trimmed package-dir-depends >$depends
tsort -h $trimmed -r $depends >$list
make ECHO_MSG='echo >&2' show=FULLPKGNAME SUBDIRLIST=$list|sed -e 's,$,.tgz,' >$packages
echo "Packages with distribution problems:"