Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire] script for ${INSTALL_ROOT}

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: hgg <hgreig AT bigpond.net.au>
  • To: sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire] script for ${INSTALL_ROOT}
  • Date: Mon, 19 May 2003 17:55:25 +1000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 19 May 2003 02:02 pm, hgg wrote:
> for i in $(grep -l "=/" localcodex/games/*/BUILD) ; do cat $i | sed
> 's/prefix=\//prefix=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/PREFIX=\//PREFIX=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/datadir=\//datadir=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/BINDIR=\//BINDIR=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/sysconfdir=\//sysconfdir=${INSTALL_ROOT}/' > $i &&cat $i | sed
> 's/localstatedir=\//localstatedir=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/bindir=\//bindir=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/mandir=\//mandir=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/sharestatedir=\//sharedstatedir=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/infodir=\//infodir=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/libdir=\//libdir=${INSTALL_ROOT}/' > $i && cat $i | sed
> 's/installdir=\//installdir=${INSTALL_ROOT}/' > $i; done
>
>
>
> this leaves a few custom builds in need of changing but handles most...
> just change localcodex/games/*/BUILD to whatever you need
>

SOMEONE changed the default and you will need to add a / after ${INSTALL_ROOT}
also there's a script i ran for HISTORY update where changelog is a file
with the following (run from within you p4 workspace)
++++++++++++++
1 i\
2003-05-19 "YOUR NAME HERE" <YOUR_EMAIL AT YOUR_ISP.BLA.BLA>
1 i\
\
1 i\
Update for ${INSTALL_ROOT}
1 i\
++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++
for i in games/* ; do if grep -rq {INSTALL_ROOT} $i ;then echo "$i"&& p4
edit $i/HISTORY && cat $i/HISTORY | sed -f ../changelog > $i/HISTORY ; fi ;
done
++++++++++++++++++++++++++++++

i know you can all do this in your sleep but know you don't have to
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQE+yI3y8fSufZR6424RAvamAJ0TVYzvUwyPnvSkV2xmQZ8F5BESiQCfaH61
qqYr8zv2sWEyXyNTAGW74Zg=
=wfVg
-----END PGP SIGNATURE-----





Archive powered by MHonArc 2.6.24.

Top of Page