[SM-Commit] GIT changes to master z-rejected grimoire by Julien ROZO (3be725f12d1715c27cb37d31bc7ce4f63ca55d7b)

Eric Sandall eric at sandall.us
Tue Nov 18 19:10:01 EST 2008


Quoting "Julien ROZO" <julien at rozo.org>:
> Eric Sandall a écrit :
>>> diff --git a/bin-games/openarena-bin/INSTALL
>>> b/bin-games/openarena-bin/INSTALL new file mode 100755
>>> index 0000000..d6b856a
>>> --- /dev/null
>>> +++ b/bin-games/openarena-bin/INSTALL
>>> @@ -0,0 +1,8 @@
>>> +INSTALL_DIR=${INSTALL_ROOT}/opt/openarena  &&
>>> +mkdir $INSTALL_DIR  &&
>>> +cp -v ${SPELL_DIRECTORY}/openarena ${INSTALL_ROOT}/usr/games  &&
>>> +cp -v ${SPELL_DIRECTORY}/oa_ded ${INSTALL_ROOT}/usr/games  &&
>>> +cp -rv * $INSTALL_DIR  &&
>>> +cd $INSTALL_DIR  &&
>>> +find_and_scam  &&
>>> +chmod 750 {oa_ded,openarena}.{i386,x86_64}
>>
>> You should modify the files before installation, that way they are
>> copied with the right permissions. This is mostly important for managed
>> files (e.g. config files or files installed with install_config_file),
>> since one file would be copied to the stage (if using castfs) or to
>> a $(file).$(date) file, while the currently installed file would have
>> it's perms changed (and would now be marked as unmodified for this
>> install of the spell).
>
> AFAIK, many game spells in z-rejected are changing permissions this way
> : alienarena-bin, fretsonfire-bin, cpma, warsow-bin, etc...
>
> I think I've used alienarena-bin as a template to make openarena-bin.
>
> I can change INSTALL in openarena-bin as you're suggesting.
>
> But do the other spells have to be changed too ?

They *should* be, in a perfect world. :) Once the files are copied to  
the INSTALL_ROOT, they should not be further modified (with  
exceptions, of course ;)).

-sandalle

-- 
Eric Sandall                     |  Source Mage GNU/Linux Developer
eric at sandall.us PGP: 0xA8EFDD61  |  http://www.sourcemage.org/
http://eric.sandall.us/          |  http://counter.li.org/  #196285




More information about the SM-Commit mailing list