From: Alexander Barton Date: Fri, 27 Jun 2008 11:12:41 +0000 (+0200) Subject: New command "freshup" to update port database and list outdated port(s). X-Git-Tag: rel-0-1-0~4 X-Git-Url: https://arthur.barton.de/gitweb/?p=pt.git;a=commitdiff_plain;h=fd9c154384134d91d693777506c3ac7f1f5ebfa5 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". --- 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