Browse Source

Improve scripts/list-packages.sh

android-5
Fredrik Fornwall 7 years ago
parent
commit
218d297f33
  1. 13
      scripts/list-packages.sh

13
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

Loading…
Cancel
Save