Improve scripts/list-packages.sh
This commit is contained in:
parent
0ee3edf5f7
commit
dfaf1e308d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user