aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2014-04-24 22:31:24 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2014-04-24 22:31:24 +0000
commiteacc5a1959009fc1a7ec52753a13743c1835b354 (patch)
tree50bad8ace2d15c0edfeed0b5c7cbfb700049cc5a
parent821e60e4cc4cf68a8068fe1e713e1e2ac035a276 (diff)
downloadports-eacc5a1959009fc1a7ec52753a13743c1835b354.tar.gz
ports-eacc5a1959009fc1a7ec52753a13743c1835b354.zip
Notes
-rw-r--r--Mk/Scripts/check-stagedir.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/Mk/Scripts/check-stagedir.sh b/Mk/Scripts/check-stagedir.sh
index 1838cf64e831..d6e6c78ebeb6 100644
--- a/Mk/Scripts/check-stagedir.sh
+++ b/Mk/Scripts/check-stagedir.sh
@@ -53,9 +53,9 @@ parse_plist() {
@dirrm*|'@unexec rmdir'*|'@unexec /bin/rmdir'*)
line="$(printf %s "$line" \
| sed -Ee 's/\|\|.*//;s|[[:space:]]+[0-9]*[[:space:]]*>[&]?[[:space:]]*[^[:space:]]+||g' \
- -e "/^@unexec[[:space:]]+(\/bin\/)?rmdir/s|([^%])%D([^%])|\1${PREFIX}\2|g" \
- -e '/^@unexec[[:space:]]+(\/bin\/)?rmdir/s|"(.*)"[[:space:]]*|\1|g' \
- -e 's/@unexec[[:space:]]+(\/bin\/)?rmdir[[:space:]]+//' \
+ -e "/^@unexec[[:space:]]+(\/bin\/)?rmdir( -p)?/s|([^%])%D([^%])|\1${PREFIX}\2|g" \
+ -e '/^@unexec[[:space:]]+(\/bin\/)?rmdir( -p)?/s|"(.*)"[[:space:]]*|\1|g' \
+ -e 's/@unexec[[:space:]]+(\/bin\/)?rmdir( -p)?[[:space:]]+//' \
-e 's/@dirrm(try)?[[:space:]]+//' \
-e 's/[[:space:]]+$//')"
case "$line" in