diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 6d80ae38e4bfa82323398ceba27f25f94072bf5f (patch) | |
tree | 8ff7b57768c1e395e55e3c177687fb76d9d74ea3 /release/create_sources_inc | |
download | other-6d80ae38e4bfa82323398ceba27f25f94072bf5f.tar.gz other-6d80ae38e4bfa82323398ceba27f25f94072bf5f.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kde-common@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'release/create_sources_inc')
-rw-r--r-- | release/create_sources_inc | 32 |
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 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>' + |