Changeset View
Changeset View
Standalone View
Standalone View
Mk/Scripts/functions.sh
| #!/bin/sh | #!/bin/sh | ||||
| # $FreeBSD$ | # $FreeBSD$ | ||||
| # This file for common functions used for port scripts. | # This file for common functions used for port scripts. | ||||
| # | # | ||||
| # MAINTAINER: portmgr@FreeBSD.org | # MAINTAINER: portmgr@FreeBSD.org | ||||
| # Strip (owner,group,perm) from keywords | # Strip (owner,group,perm) from keywords | ||||
| _strip_perms() { | _strip_perms() { | ||||
| sed -Ee 's/^@\([^)]*\)[[:space:]]+//' \ | sed -Ee 's/^@\([^)]*\)[[:space:]]+//' \ | ||||
| -e 's/^(@[[:alpha:]]+)\([^)]*\)[[:space:]]+/\1 /' | -e 's/^(@[[:alpha:]]+)\([^)]*\)[[:space:]]+/\1 /' \ | ||||
| -e 's/^@@[[:alnum:]]+@@//' | |||||
| } | } | ||||
| # Expand TMPPLIST to absolute paths, splitting files and dirs into separate | # Expand TMPPLIST to absolute paths, splitting files and dirs into separate | ||||
| # descriptors. | # descriptors. | ||||
| # Input: | # Input: | ||||
| # fd:0 - plist to parse | # fd:0 - plist to parse | ||||
| # Required params: | # Required params: | ||||
| # PREFIX | # PREFIX | ||||
| ▲ Show 20 Lines • Show All 260 Lines • Show Last 20 Lines | |||||