summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaromil <jaromil@dyne.org>2014-06-30 09:06:48 (GMT)
committer Jaromil <jaromil@dyne.org>2014-06-30 09:20:50 (GMT)
commitfa4cd845ff5cdf5dc968f7afd1d42353ad7729cd (patch)
treeeba96874bbe9e1817d1556879811ab34085872ce
parent550199d23135e754f19275bb71dbfeeafaad4b42 (diff)
fix software manifest list generation
-rwxr-xr-xzmake13
1 files changed, 11 insertions, 2 deletions
diff --git a/zmake b/zmake
index 33dd67c..31e0df8 100755
--- a/zmake
+++ b/zmake
@@ -94,10 +94,19 @@ list_sources() {
modules+=(${ZHOME}/build/${m}/Sources); done
fi
for i in $modules; do
- cat $i | awk '!/^#/ { print $1 $2 }' >> /tmp/zshaolin.list
+ cat $i | awk '!/^#/ { print $1 $2 " " $4 }' >> /tmp/zshaolin.list
done
- cat /tmp/zshaolin.list | sort | uniq | sed 's/_arm//;s/eabi//'
+ swlist=`cat /tmp/zshaolin.list | sort | uniq | sed 's/_arm//;s/eabi//'`
rm -f /tmp/zshaolin.list
+ for i in ${(f)swlist}; do
+ name=${i[(ws: :)1]}
+ url=${i[(ws: :)2]}
+ if [ "$url" = "$name" ]; then
+ print "<li>$name</li>"
+ else
+ print "<li><a href=\"${url}\" target=\"_blank\">$name</a></li>"
+ fi
+ done
}
typeset -h operation