From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Sascha Hauer Date: Wed, 26 Feb 2014 15:13:15 +0100 Message-Id: <1393424001-26060-1-git-send-email-s.hauer@pengutronix.de> Subject: [ptxdist] [PATCH 1/7] ptxdist: Add list-packages command Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: mol@pengutronix.de, mkl@pengutronix.de This adds a command to list all packages currently selected. ptxdist gurus can use 'ptxdist print PACKAGES' for the same purpose, this command is for the people who can't remember the command. As a bonus list-packages prints one package per line and sorts them alphabetically. Signed-off-by: Sascha Hauer --- bin/ptxdist | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/ptxdist b/bin/ptxdist index 663c41e..b2c2e7a 100755 --- a/bin/ptxdist +++ b/bin/ptxdist @@ -898,6 +898,7 @@ Misc: nfsroot run a userspace NFS server and export the nfsroot print print the contents of a variable, in the way it is known by "make" + list-packages print a list of all selected packages bash enter a ptxdist environment bash shell bash [args...] execute in ptxdist environment export_src export all source archives needed for this @@ -1804,6 +1805,13 @@ EOF ptxd_make_log "${images[@]}" exit ;; + list-packages) + check_config || return + check_deps + ( for i in $(ptxd_make_log "print-PACKAGES"); + do echo $i + done ) | sort + ;; make) check_premake_compiler && ptxd_make_log "${@}" -- 1.8.5.3 -- ptxdist mailing list ptxdist@pengutronix.de