aboutsummaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2008-07-26 22:02:55 +0800
committerkris <kris@FreeBSD.org>2008-07-26 22:02:55 +0800
commit90267adee00bfb0087e6f3cfe9ba535a7cfbf617 (patch)
tree2ca36881f957fab7176d4c2f8b7644061feb98ba /Tools
parent420043159537d6768e8b0079542443b498df49ca (diff)
downloadfreebsd-ports-gnome-90267adee00bfb0087e6f3cfe9ba535a7cfbf617.tar.gz
freebsd-ports-gnome-90267adee00bfb0087e6f3cfe9ba535a7cfbf617.tar.zst
freebsd-ports-gnome-90267adee00bfb0087e6f3cfe9ba535a7cfbf617.zip
* Implement basename and dirname using shell builtins
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/portbuild/scripts/processfail8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/processfail b/Tools/portbuild/scripts/processfail
index 11c3c9573eea..6246c76863e1 100755
--- a/Tools/portbuild/scripts/processfail
+++ b/Tools/portbuild/scripts/processfail
@@ -41,6 +41,14 @@ footer() {
#
header "<th>Port</th><th>Package</th><th>Broken</th><th>Last</th><th>#</th>"
+dirname() {
+ echo ${1%/*}
+}
+
+basename() {
+ echo ${1##*/}
+}
+
sort -r -n -k 4 -t \| failure > newfailure
IFS='|'
while read dir name ver date last count; do