sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
Re: [SM-Commit] GIT changes to devel-flux cauldron by Justin Boffemmyer (519fba4ba57b55bc91fd03d4e8fc8feb40854b37)
- From: Jaka Kranjc <lynx AT mages.ath.cx>
- To: sm-commit AT lists.ibiblio.org
- Subject: Re: [SM-Commit] GIT changes to devel-flux cauldron by Justin Boffemmyer (519fba4ba57b55bc91fd03d4e8fc8feb40854b37)
- Date: Thu, 17 Jan 2008 15:11:14 +0100
On Thursday 17 of January 2008 05:10:39 Justin Boffemmyer wrote:
> line to source the library was added. I also put in the prototype for
> a function that will write to the cauldron config file (no code
> implemented yet though)
> +function cauldron_modify_local_config() {
> }
Check modify_config (modiy_local_config for the way to call it), there's no
sense in rewriting it.
> + # get the value for the HOST triplet from sorcery archspecs
> + for spec in ${HOST_ARCH_PATH[@]}
> + do
> + if [[ $(find --version|grep -q 'version 4\.1\(\.\|$\)') == 1 ]]
grep -q doesn't output anything, the only indicator is the return value:
if ! find --version|grep -q 'version 4\.1\(\.\|$\)'
Not sure if this check makes sense at all, findutils:
2005-02-01 Eric Sandall <sandalle AT sourcemage.org>
* DETAILS: Updated to 4.2.15
> + then
> + ARCH_SPEC=$(find ${spec} -perm 400 -type f -name ${HOST_ARCH} \
> + -print 2>/dev/null)
> + else
> + ARCH_SPEC=$(find -L ${spec} -perm 400 -type f -name ${HOST_ARCH} \
> + -print 2>/dev/null)
> + fi
> + [[ ARCH_SPEC ]] && break
> + done
> + HOST_TRIPLE=$(grep "HOST=" ${ARCH_SPEC} | cut -d = -f 2)
Might be good to do all these extractions in a function, so when the time
comes and you stop parsing files, only the function will have to change, not
the callers.
--
We cannot command nature except by obeying her. --Sir Francis Bacon
Have a sourcerous day! www.sourcemage.org
Attachment:
signature.asc
Description: This is a digitally signed message part.
-
[SM-Commit] GIT changes to devel-flux cauldron by Justin Boffemmyer (519fba4ba57b55bc91fd03d4e8fc8feb40854b37),
Justin Boffemmyer, 01/16/2008
- Re: [SM-Commit] GIT changes to devel-flux cauldron by Justin Boffemmyer (519fba4ba57b55bc91fd03d4e8fc8feb40854b37), Jaka Kranjc, 01/17/2008
Archive powered by MHonArc 2.6.24.