Generate also sizes of files, for files.inc.php on homepage.

This commit is contained in:
Michal Čihař
2003-11-18 13:29:12 +00:00
parent 9de6159c31
commit 4edf711ada
2 changed files with 10 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2003-11-18 Michal Cihar <nijel@users.sourceforge.net>
* 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 <lem9@users.sourceforge.net>
* lang/french: update

View File

@@ -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