Improve scripts/list-packages.sh

This commit is contained in:
Fredrik Fornwall 2017-12-05 22:36:18 +01:00
parent 0ee3edf5f7
commit dfaf1e308d

View File

@ -1,8 +1,13 @@
#!/bin/sh #!/bin/bash
# list-packages.sh - tool to list all package with home pages and descriptions # 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 for path in packages/*; do
export path ( show_package $path )
export pkg=`basename $path`
bash -c '. $path/build.sh; echo "$pkg($TERMUX_PKG_VERSION): $TERMUX_PKG_HOMEPAGE"; echo " $TERMUX_PKG_DESCRIPTION"'
done done