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:
parent
ac8e5b173a
commit
afc9760354
@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/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
|
# Copyright (c) 2001
|
||||||
# Marc Espie. All rights reserved.
|
# Marc Espie. All rights reserved.
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@ -47,8 +47,8 @@ trimmed="$initial.trimmed"
|
|||||||
: ${PORTSDIR:=/usr/ports}
|
: ${PORTSDIR:=/usr/ports}
|
||||||
cd ${PORTSDIR}
|
cd ${PORTSDIR}
|
||||||
|
|
||||||
make ECHO_MSG='echo >&2' SUBDIRLIST=$initial package-dir-depends >$depends
|
make ECHO_MSG='echo >&2' SUBDIRLIST=$initial show=FULLPKGPATH >$trimmed
|
||||||
sed -e 's,[ ]*\#.*,,' -e '/^[ ]*$/d' $initial >$trimmed
|
make ECHO_MSG='echo >&2' SUBDIRLIST=$trimmed package-dir-depends >$depends
|
||||||
tsort -h $trimmed -r $depends >$list
|
tsort -h $trimmed -r $depends >$list
|
||||||
make ECHO_MSG='echo >&2' show=FULLPKGNAME SUBDIRLIST=$list|sed -e 's,$,.tgz,' >$packages
|
make ECHO_MSG='echo >&2' show=FULLPKGNAME SUBDIRLIST=$list|sed -e 's,$,.tgz,' >$packages
|
||||||
echo "Packages with distribution problems:"
|
echo "Packages with distribution problems:"
|
||||||
|
Loading…
Reference in New Issue
Block a user