From fd9c154384134d91d693777506c3ac7f1f5ebfa5 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 27 Jun 2008 13:12:41 +0200 Subject: [PATCH] New command "freshup" to update port database and list outdated port(s). The command "freshup" is a shortcut for "pt update && pt outdated" and updates the installed port software and database, and then display all outdated ports. The commands "fresh" and "up" are aliases for "freshup". --- bin/pt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/pt b/bin/pt index 6ca8c1e..fc4cc10 100755 --- a/bin/pt +++ b/bin/pt @@ -50,6 +50,7 @@ Usage() { echo " clean [ [...]] -- clean port build files" echo " update -- update port database" echo " upgrade -- upgrade outdated port(s)" + echo " freshup -- update port database & list outdated ports" echo " search -- search for port(s)" echo " list -- list port(s)" echo " info -- display details of a port" @@ -914,6 +915,14 @@ case "$1" in Upgrade Clean_Exit $? ;; + "freshup"|"fresh"|"up") + shift + Check_Root_Perm + [ $# -ne 0 ] && Usage + Update + List_Outdated + Clean_Exit $? + ;; "remove"|"uninstall") shift Check_Root_Perm -- 2.39.2