Add list-packages-html.sh

This commit is contained in:
Fredrik Fornwall 2015-07-14 01:11:18 +02:00
parent 284604c7f0
commit af54291f54
1 changed files with 13 additions and 0 deletions

13
list-packages-html.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
# list-packages.sh - tool to list all package with home pages and descriptions
echo "<html><head><title>Termux packages</title></head><body>"
echo "<p>This is a list of packages available in Termux.</p>"
for path in packages/*; do
export path
export pkg=`basename $path`
bash -c '. $path/build.sh; echo -n "<li><a href=\"$TERMUX_PKG_HOMEPAGE\">$pkg</a>"; echo " - $TERMUX_PKG_DESCRIPTION</li>"'
done
echo "</body></html>"