~mdw
/
termux-packages
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d8033be
)
Improve check-versions.sh
author
Fredrik Fornwall
<fredrik@fornwall.net>
Tue, 7 Nov 2017 03:57:55 +0000
(
04:57
+0100)
committer
Fredrik Fornwall
<fredrik@fornwall.net>
Tue, 7 Nov 2017 03:58:09 +0000
(
04:58
+0100)
scripts/check-versions.sh
patch
|
blob
|
blame
|
history
diff --git
a/scripts/check-versions.sh
b/scripts/check-versions.sh
index
9a4e798
..
bdc1d4e
100755
(executable)
--- a/
scripts/check-versions.sh
+++ b/
scripts/check-versions.sh
@@
-4,13
+4,18
@@
OPEN=xdg-open
if [ `uname` = Darwin ]; then OPEN=open; fi
OPEN=xdg-open
if [ `uname` = Darwin ]; then OPEN=open; fi
-# Run each package in separate process since we include their environment variables:
-for path in packages/*; do
-(
- pkg=`basename $path`
+check_package() { # path
+ local path=$1
+ local pkg=`basename $path`
. $path/build.sh
. $path/build.sh
- echo -n "$pkg - $TERMUX_PKG_VERSION
- press Return to check homepage
"
+ echo -n "$pkg - $TERMUX_PKG_VERSION"
read
$OPEN $TERMUX_PKG_HOMEPAGE
read
$OPEN $TERMUX_PKG_HOMEPAGE
+}
+
+# Run each package in separate process since we include their environment variables:
+for path in packages/*; do
+(
+ check_package $path
)
done
)
done