summaryrefslogtreecommitdiffstats
path: root/release/create_sources_inc
diff options
context:
space:
mode:
Diffstat (limited to 'release/create_sources_inc')
-rw-r--r--release/create_sources_inc32
1 files changed, 32 insertions, 0 deletions
diff --git a/release/create_sources_inc b/release/create_sources_inc
new file mode 100644
index 0000000..71e1c7b
--- /dev/null
+++ b/release/create_sources_inc
@@ -0,0 +1,32 @@
+echo '<table border="0" cellpadding="4" cellspacing="0">'
+echo '<tr valign="top">'
+echo ' <th align="left">Location</th>'
+echo ' <th align="left">Size</th>'
+echo ' <th align="left">MD5&nbsp;Sum</th>'
+echo '</tr>'
+
+for i in *.tar.bz2; do
+ echo '<tr valign="top">'
+ l=`echo $i | sed -e "s#.tar.bz2##"`
+ echo ' <td><a href="http://download.kde.org/stable/3.5.10/src/'$i'">'$l'</a></td>'
+ size=`stat -c "%s" $i`
+ size=`echo "$size / 1024" | bc`
+ if test "$size" -lt 1024; then
+ size="$size"kB
+ else
+ size=`echo "($size * 10) / 1024" | bc`
+ if test "$size" -lt 100; then
+ size=`echo "$size"MB | sed -e "s#\(.\)MB#.\1MB#"`
+ else
+ size=`echo "$size"MB | sed -e "s#\(.\)MB#MB#"`
+ fi
+ fi
+ echo ' <td align="right">'$size'</td>'
+ md5=`md5sum $i | cut -f1 -d' '`
+ echo ' <td><tt>'$md5'</tt></td>'
+ echo '</tr>'
+ echo ''
+done
+
+echo '</table>'
+