Path: utzoo!utgpu!news-server.csri.toronto.edu!csri.toronto.edu!wayne Newsgroups: comp.os.minix From: wayne@csri.toronto.edu (Wayne Hayes) Subject: Re: Unified MINIX GNU port Message-ID: <1991Feb1.210856.3991@jarvis.csri.toronto.edu> Summary: Here's a script called gcc to do the conversion Organization: CSRI, University of Toronto References: <43079@nigel.ee.udel.edu> <1974@Terra.cc.brunel.ac.uk> Date: 2 Feb 91 02:08:56 GMT Lines: 49 In article <1974@Terra.cc.brunel.ac.uk> eesrajm@cc.brunel.ac.uk (Andrew J Michael) writes: >2. Add an entirely separate conversion program, as Alan Black did for the >386. This is nice and simple, and does not require alterations to gcc-ld. >Unfortunately it also means adding extra lines to every Makefile in >existence. NO! This isn't necessary. I wrote a little shell script called "gcc", renamed the real gcc to gcc-exec, and the shell script does the conversion after the real compile is finished. It's so short I include it here in both clear text and uuencoded. --- snip snip --- #!/bin/sh gcc-exec $* case $? in 0) ;; *) exit 1;; esac out="a.out" c="" while test -n "$1"; do case "$1" in -o) out="$2"; shift ;; -c) exit 0 ;; # no executable generated *) ;; esac shift done gcc2minix <$out >gcc$$ mv gcc$$ $out exec chmod +x $out --- snip snip --- begin 644 gcc.sh M(R$O8FEN+W-H"@IG8V,M97AE8R`D*@IC87-E("0_(&EN"@DP*0D[.PH)*BD@ M(&5X:70@,3L["F5S86,*"F]U=#TB82YO=70B"F,](B(*=VAI;&4@=&5S="`M M;B`B)#$B.R!D;PH)8V%S92`B)#$B(&EN"@D)+6\I(&]U=#TB)#(B(#L["@D) M+6,I(&5X:70@,"`[.PDC(&YO(&5X96-U=&%B;&4@9V5N97)A=&5D"@D)*BD@ M.SL*"65S86,*"7-H:69T"F1O;F4)"F=C8S)M:6YI>"`\)&]U="`^9V-C)"0* A;78@9V-C)"0@)&]U=`IE>&5C(&-H;6]D("MX("1O=70* ` end -- "Dad, what should I be when I grow up?" "Honest." -- Robert M. Pirsig, _Zen and the Art of Motorcycle Maintenence_. Wayne Hayes INTERNET: wayne@csri.utoronto.ca CompuServe: 72401,3525