r389 - trunk/examples/ut3-dedicated

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Mon Dec 17 14:41:50 EST 2007


Author: icculus
Date: 2007-12-17 14:41:50 -0500 (Mon, 17 Dec 2007)
New Revision: 389

Modified:
   trunk/examples/ut3-dedicated/make.sh
Log:
Don't count .svn dir size in total installed bytes.


Modified: trunk/examples/ut3-dedicated/make.sh
===================================================================
--- trunk/examples/ut3-dedicated/make.sh	2007-12-17 19:37:25 UTC (rev 388)
+++ trunk/examples/ut3-dedicated/make.sh	2007-12-17 19:41:50 UTC (rev 389)
@@ -30,6 +30,8 @@
 
 # this is a little nasty, but it works!
 TOTALINSTALL=`du -sb data |perl -w -pi -e 's/\A(\d+)\s+data\Z/$1/;'`
+TOTALINSTALLSVN=`du -sb data/.svn |perl -w -pi -e 's/\A(\d+)\s+data\/\.svn\Z/$1/;'`
+let TOTALINSTALL=$TOTALINSTALL-$TOTALINSTALLSVN
 perl -w -pi -e "s/\A\s*(local TOTAL_INSTALL_SIZE)\s*\=\s*\d+\s*;\s*\Z/\$1 = $TOTALINSTALL;\n/;" scripts/config.lua
 
 # Clean up previous run, build fresh dirs for Base Archive.




More information about the mojosetup-commits mailing list