[SM-Commit] GIT changes to master games grimoire by David Brown (0ec1546a879fb78eaf1b1d6ff30c949d768d0e2e)

David Brown scm at mail.sourcemage.org
Tue Dec 5 15:00:21 EST 2006


GIT changes to master games grimoire by David Brown <dmlb2000 at gmail.com>:

 ChangeLog |    7 +++++++
 FUNCTIONS |    7 ++++++-
 2 files changed, 13 insertions(+), 1 deletion(-)

New commits:
commit 0ec1546a879fb78eaf1b1d6ff30c949d768d0e2e
Author: David Brown <dmlb2000 at gmail.com>
Commit: David Brown <dmlb2000 at gmail.com>

    FUNCTIONS games make proper binary fixed some little variable useage problems

commit eaebfaa60c25c7493ef15f5fd85ca775bfa437f0
Author: David Brown <dmlb2000 at gmail.com>
Commit: David Brown <dmlb2000 at gmail.com>

    FUNCTIONS added back check for making proper games binaries

diff --git a/ChangeLog b/ChangeLog
index 23e8157..831dc78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-05 David Brown <dmlb2000 at gmail.com>
+	* FUNCTIONS: games make proper binary fixed variable problems
+
+2006-12-04 David Brown <dmlb2000 at gmail.com>
+	* FUNCTIONS: games_make_proper_binary made the proper way to check for
+	 staging and to see if its on
+
 2006-11-25 Pol Vinogradov <vin.public at gmail.com>
 	* games-strategy-rts/dunelegacy: new spell, free clone of Dune2
 	* games-strategy-tbs/hedgewars: new spell, free Worms-like turn based
diff --git a/FUNCTIONS b/FUNCTIONS
index a994142..4d09eb4 100755
--- a/FUNCTIONS
+++ b/FUNCTIONS
@@ -132,10 +132,15 @@ function games_create_base_dirs() {
 #---
 
 function games_make_proper_binary() {
-if ( grep -q "usr/games/" $IW_LOG )
+if grep -q "usr/games/" $IW_LOG > /dev/null 2>&1
 then
   grimoire_parse_iw $IW_LOG | grimoire_exists | sort | grep "usr/games/" | xargs -n 1 chmod -f 0750
   grimoire_parse_iw $IW_LOG | grimoire_exists | sort | grep "usr/games/" | xargs -n 1 chown -f root.games
+elif [[ $STAGED_INSTALL == on ]]
+then
+  echo "doing the stage root thing"
+  find $STAGE_DIRECTORY/TRANSL/ | sed "s#$STAGE_DIRECTORY/##" | grep '^TRANSL/usr/games' | xargs -n 1 chmod -f 0750
+  find $STAGE_DIRECTORY/TRANSL/ | sed "s#$STAGE_DIRECTORY/##" | grep '^TRANSL/usr/games' | xargs -n 1 chown -f root.games
 else
 message "${QUERY_COLOR}If you see this message and you're not \n \
 installing a data spell then report this at the following url: \n \



More information about the SM-Commit mailing list