From 218d297f33f4e54c9261c7c230f91d083eb0b47a Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Tue, 5 Dec 2017 22:36:18 +0100 Subject: [PATCH] Improve scripts/list-packages.sh --- scripts/list-packages.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/scripts/list-packages.sh b/scripts/list-packages.sh index c83b54017..57c437ce5 100755 --- a/scripts/list-packages.sh +++ b/scripts/list-packages.sh @@ -1,8 +1,13 @@ -#!/bin/sh +#!/bin/bash # list-packages.sh - tool to list all package with home pages and descriptions +show_package() { + . $1/build.sh + local pkg=`basename $1` + echo "$pkg($TERMUX_PKG_VERSION): $TERMUX_PKG_HOMEPAGE" + echo " $TERMUX_PKG_DESCRIPTION" +} + for path in packages/*; do - export path - export pkg=`basename $path` - bash -c '. $path/build.sh; echo "$pkg($TERMUX_PKG_VERSION): $TERMUX_PKG_HOMEPAGE"; echo " $TERMUX_PKG_DESCRIPTION"' + ( show_package $path ) done