Send commitlog mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:

   1. r1805 - trunk/src/host/qemu-neo1973/openmoko
      ([EMAIL PROTECTED])
--- Begin Message ---
Author: andrew
Date: 2007-04-19 11:07:56 +0200 (Thu, 19 Apr 2007)
New Revision: 1805

Modified:
   trunk/src/host/qemu-neo1973/openmoko/flash.sh
Log:
Avoid "stat" in scripts as it doesn't even pretend to be cross-platform
(see BSD), and "gstat" is too risky.


Modified: trunk/src/host/qemu-neo1973/openmoko/flash.sh
===================================================================
--- trunk/src/host/qemu-neo1973/openmoko/flash.sh       2007-04-19 08:24:51 UTC 
(rev 1804)
+++ trunk/src/host/qemu-neo1973/openmoko/flash.sh       2007-04-19 09:07:56 UTC 
(rev 1805)
@@ -44,7 +44,8 @@
 most_recent () {
        cd $src_dir
        export $2="`basename \`ls -d -1 $img_dir/$1 | sort | tail -n 1\``"
-       export $3="`python -c \"print hex(\`stat -c %s $img_dir/${!2}\`)\"`"
+       export $3="`python -c \"import os; print hex(\
+               os.stat('$img_dir/${!2}').st_size)\"`"
        cd $script_dir
        [ -e "${!2}" ] || ln -sf $img_dir/${!2} ${!2}
        [ -n "${!3}" ]




--- End Message ---
_______________________________________________
commitlog mailing list
[email protected]
http://lists.openmoko.org/mailman/listinfo/commitlog

Reply via email to