From 4edf711ada5dc95ed7bb1ff2f57f1f8a1f67bd86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 18 Nov 2003 13:29:12 +0000 Subject: [PATCH] Generate also sizes of files, for files.inc.php on homepage. --- ChangeLog | 2 ++ scripts/create-release.sh | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e4025435f..0fc04360b 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ $Source$ 2003-11-18 Michal Cihar * read_dump.php3: Show result of last SHOW query when multiple queries. + * scripts/create-release.sh: Generate also sizes of files, for + files.inc.php on homepage. 2003-11-17 Marc Delisle * lang/french: update diff --git a/scripts/create-release.sh b/scripts/create-release.sh index e1a3a9257..82c7eefc0 100755 --- a/scripts/create-release.sh +++ b/scripts/create-release.sh @@ -140,10 +140,16 @@ echo echo "MD5 sums:" echo "--------" -md5sum *.gz *.zip *.bz2 | sed "s/\([^ ]*\)[ ]*\([^ ]*\)/\$md5sum['\2'] = '\1';/" +md5sum *.{gz,zip,bz2} | sed "s/\([^ ]*\)[ ]*\([^ ]*\)/\$md5sum['\2'] = '\1';/" echo -echo "Add these to /home/groups/p/ph/phpmyadmin/htdocs/home_page/md5.inc.php on sf" +echo "Sizes:" +echo "------" + +ls -l --block-size=k *.{gz,zip,bz2} | sed -r "s/[a-z-]+[[:space:]]+[0-9]+[[:space:]]+[^[:space:]]+[[:space:]]+[^[:space:]]+[[:space:]]+([0-9]*)K.*[[:space:]]([^[:space:]]+)\$/\$size['\2'] = \1;/" + +echo +echo "Add these to /home/groups/p/ph/phpmyadmin/htdocs/home_page/files.inc.php on sf" cd .. find cvs -type d -print0 | xargs -0 chmod 775