[M3devel] wierdness around user overrides vs. uname in sysinfo.sh?
Jay
jayk123 at hotmail.com
Fri Dec 28 17:55:16 CET 2007
inline (but aggressively trimmed)
> Date: Fri, 28 Dec 2007 17:35:40 +0100
> From: wagner at elegosoft.com
> To: m3devel at elegosoft.com
>
> Quoting Jay <jayk123 at hotmail.com>:
>
> export OMIT_GCC=yes
>
> will do just that for all shell scripts, IIRC.
Ah, thanks, will try that.
> >> 2) optionally clean between various steps, as was apparently
> >> necessary for me
>
> It should not be difficult to add that. Something like
>
> . "$ROOT/scripts/do-cm3-core.sh" realclean || exit 1
>
> should do the trick.
Yeah, I have that locally, but I wanted to make it an option since perhaps/apparently it isn't
always needed, and therefore wastes time. And then I got all bogged down in how the
command line parsing is shared and I didn't want to add a parameter to every script, and
I couldn't figure out how to check the command line ahead of time and then remove what
I recognize. Like, if I could assign empty strings to $1 or $2 or $3, would be nice..but seems
not possible..and then it just comes back to my strong suspicion that sh just sucks and isn't worth the effort.
> don't forget that all these scripts are just...
> ...the important asset is in all the M3 code.
I know...but...
Modula-3 is really slow to grow on me.. this has actually been a very useful exercise in my long delayed adoption of Python.
I got my dynamic linking/pic issues worked out and once I get to
porting make-bin-dist I'll have it work like my Win32 version -- just
a .tar.bz2 file that you extract in the install root or above the
install root (still not sure about the archive's root being cm3 or
cm3-version or within that).. really, cminstall seems pretty pointless...
Index: upgrade.sh
===================================================================
RCS file: /usr/cvs/cm3/scripts/upgrade.sh,v
retrieving revision 1.3
diff -c -r1.3 upgrade.sh
*** upgrade.sh 16 Dec 2007 17:56:24 -0000 1.3
--- upgrade.sh 28 Dec 2007 16:51:34 -0000
***************
*** 28,34 ****
some accidental diff here..
***************
*** 50,61 ****
--- 50,72 ----
P="${P} cm3"
[ "${M3OSTYPE}" = "WIN32" ] && P="${P} mklib"
+ echo "$ROOT/scripts/do-pkg.sh" "$@" "realclean ${P}"
+ . "$ROOT/scripts/do-pkg.sh" "$@" "realclean" ${P} || exit 1
+
+ exit
+
echo "$ROOT/scripts/do-pkg.sh" "$@" "buildship ${P}"
. "$ROOT/scripts/do-pkg.sh" "$@" "buildship" ${P} || exit 1
echo "$ROOT/scripts/install-cm3-compiler.sh" $OPTIONS upgrade
"$ROOT/scripts/install-cm3-compiler.sh" $OPTIONS upgrade || exit 1
+ echo "$ROOT/scripts/do-pkg.sh" "$@" "realclean ${P}"
+ . "$ROOT/scripts/do-pkg.sh" "$@" "realclean" ${P} || exit 1
+
+ echo "$ROOT/scripts/do-cm3-core.sh" "$@" "realclean"
+ . "$ROOT/scripts/do-cm3-core.sh" "$@" "realclean" || exit 1
+
echo "$ROOT/scripts/do-cm3-core.sh" "$@" "buildship"
. "$ROOT/scripts/do-cm3-core.sh" "$@" "buildship" || exit 1
- Jay
_________________________________________________________________
i’m is proud to present Cause Effect, a series about real people making a difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20071228/efb9518c/attachment-0002.html>
More information about the M3devel
mailing list