www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - install-dmd v1.1

Dear D-Community,

I wrote simple BASH script which my friends and I use to install/upgrade
DigitalMars D Compiler on our GNU/Linux boxes.
As stated on my (temporal) homepage (http://dejan.lekic.googlepages.com), here
is what You should do in order to use install-dmd script:

cd /tmp
wget http://dejan.lekic.googlepages.com/install-dmd
chmod 755 install-dmd
./install-dmd 178

It is recommended to put install-dmd script into ~/bin directory and use it
whenever there is a new DMD version online. :)

As of the 1.1 version, install-dmd CAN:
- Install DMD system-wide (every user would be able to use it), if executed by
root.
- Install DMD in users HOME, and setup .bashrc, if executed by !root.
- Detect if dmd.NNN.zip package is downloaded or not (must be in the current
directory), if it is not in the current directory, the script will download it.

Requirements: unzip, wget .

Kind regards, Mery Christmas and Happy New Year!

Dejan Lekic
begin 644 install-dmd
M(R$O8FEN+W-H" HC(R,*(R!I;G-T86QL+61M9"!V,2XP"B, 4VEM<&QE(&EN
M<W1A;&QA=&EO;B!S8W)I<'0 9F]R($1I9VET86Q-87)S($0 0V]M<&EL97( 
M*%1-*2X*(PHC($%U=&AO<BAS*3H*(R!$96IA;B!,96MI8RP 9&5J86XN;&5K
M:6-`9VUA:6PN8V]M+"!H='1P.B\O9&5J86XN;&5K:6,N;W)G"B, ("` ("` 
M("` ("` ("` ("` ("` ("` 0&MC;"YA8RYU:RP :'1T<#HO+V1E:F%N+FQE
M:VEC+F=O;V=L97!A9V5S+F-O;0H*(R,C"B, 0V]P>7)I9VAT("AC*2!$96IA
M;B!,96MI8RX*(R!!;&P <FEG:'1S(')E<V5R=F5D+ HC(`HC(%)E9&ES=')I
M8G5T:6]N(&%N9"!U<V4 :6X <V]U<F-E(&%N9"!B:6YA<GD 9F]R;7,L('=I
M=&  ;W( =VET:&]U=`HC(&UO9&EF:6-A=&EO;BP 87)E('!E<FUI='1E9"!P
M<F]V:61E9"!T:&%T('1H92!F;VQL;W=I;F< 8V]N9&ET:6]N<PHC(&%R92!M
M970Z"B, ,2X 4F5D:7-T<FEB=71I;VYS(&]F('-O=7)C92!C;V1E(&UU<W0 
M<F5T86EN('1H92!A8F]V92!C;W!Y<FEG:'0*(R` ("!N;W1I8V4L('1H:7, 
M;&ES="!O9B!C;VYD:71I;VYS(&%N9"!T:&4 9F]L;&]W:6YG(&1I<V-L86EM
M97(N"B, ,BX 4F5D:7-T<FEB=71I;VYS(&EN(&)I;F%R>2!F;W)M(&UU<W0 
M<F5P<F]D=6-E('1H92!A8F]V92!C;W!Y<FEG:'0*(R` ("!N;W1I8V4L('1H
M:7, ;&ES="!O9B!C;VYD:71I;VYS(&%N9"!T:&4 9F]L;&]W:6YG(&1I<V-L
M86EM97( :6X =&AE"B, ("` 9&]C=6UE;G1A=&EO;B!A;F0O;W( ;W1H97( 
M;6%T97)I86QS('!R;W9I9&5D('=I=&  =&AE(&1I<W1R:6)U=&EO;BX*(R`S
M+B!.96ET:&5R('1H92!N86UE(&]F('1H92!5;FEV97)S:71Y(&YO<B!T:&4 
M;F%M97, ;V8 :71S(&-O;G1R:6)U=&]R<PHC("` (&UA>2!B92!U<V5D('1O
M(&5N9&]R<V4 ;W( <')O;6]T92!P<F]D=6-T<R!D97)I=F5D(&9R;VT =&AI
M<R!S;V9T=V%R90HC("` ('=I=&AO=70 <W!E8VEF:6, <')I;W( =W)I='1E
M;B!P97)M:7-S:6]N+ HC(`HC(%1(25, 4T]&5%=!4D4 25, 4%)/5DE$140 
M0ED 5$A%(%)%1T5.5%, 04Y$($-/3E1224)55$]24R! 8$%3($E3)R< 04Y$
M"B, 04Y9($584%)%4U, 3U( 24U03$E%1"!705)204Y42453+"!)3D-,541)
M3D<L($)55"!.3U0 3$E-251%1"!43RP 5$A%"B, 24U03$E%1"!705)204Y4
M2453($]&($U%4D-(04Y404))3$E462!!3D0 1DE43D534R!&3U( 02!005)4
M24-53$%2(%!54E!/4T4*(R!!4D4 1$E30TQ!24U%1"X ($E.($Y/($5614Y4
M(%-(04Q,(%1(12!214=%3E13($]2($-/3E1224)55$]24R!"12!,24%"3$4*
M(R!&3U( 04Y9($1)4D5#5"P 24Y$25)%0U0L($E.0TE$14Y404PL(%-014-)
M04PL($5814U03$%262P 3U( 0T].4T51545.5$E!3`HC($1!34%'15, *$E.
M0TQ51$E.1RP 0E54($Y/5"!,24U)5$5$(%1/+"!04D]#55)%345.5"!/1B!3
M54)35$E4551%($=/3T13"B, 3U( 4T525DE#15,[($Q/4U, 3T8 55-%+"!$
M051!+"!/4B!04D]&2513.R!/4B!"55-)3D534R!)3E1%4E)54%1)3TXI"B, 
M2$]7159%4B!#0553140 04Y$($].($%.62!42$5/4ED 3T8 3$E!0DE,2519
M+"!72$542$52($E.($-/3E1204-4+"!35%))0U0*(R!,24%"24Q)5%DL($]2
M(%1/4E0 *$E.0TQ51$E.1R!.14=,24=%3D-%($]2($]42$525TE312D 05))
M4TE.1R!)3B!!3ED 5T%9"B, 3U54($]&(%1(12!54T4 3T8 5$A)4R!33T94
M5T%212P 159%3B!)1B!!1%9)4T5$($]&(%1(12!03U-324))3$E462!/1 HC
M(%-50T  1$%-04=%+ HC" IU<V5R;F%M93U :60 +75N8`I53EI)4#TB=6YZ
M:7` +7%Q( ID;%]P<F]G/2)W9V5T("UQ( IB:6Y?9FEL97,](F1M9"!D=6UP
M;V)J(&]B:C)A<VT <F1M9"(*;&EB7V9I;&5S/2)G8W-T=6(N;V)J(&QI8G!H
M;V)O<RYA( IM>5]D:7(])%!71`IP<F5F:7 ]+W5S< IE=&-?9&ER/2]E=&,*
M:68 6R`D=7-E<FYA;64 (3T (G)O;W0B(%T[('1H96X*("!P<F5F:7 ])$A/
M344*("!E=&-?9&ER/21(3TU%+V5T8PIF:0IB:6Y?9&ER/21P<F5F:7 O8FEN
M"FQI8E]D:7(])'!R969I>"]L:6(*;6%N7V1I<CTD<')E9FEX+W-H87)E+VUA
M; IS<F-?9&ER/21P<F5F:7 O<W)C"F1M9%]P86,]9&UD+B0Q+GII<`IW=W=?
M<&%C/6AT='`Z+R]F='`N9&EG:71A;&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$:6=I=&%L36%R<R!$($-O;7!I
M;&5R($9L86=S"B,*1$9,04=3/2(M221[<W)C7V1I<GTO<&AO8F]S("U,+4PD
M>VQI8E]D:7)]( IE>'!O<G0 1$9,04=3" I$341?1$9,04=37U\*("` (&5X
M<&]R="!$1DQ!1U,](BU))'MS<F-?9&ER?2]P:&]B;W, +4PM3"1[;&EB7V1I
M<GTB"B` 9FD*9FD*"F5C:&\ (D1O;F4A($5N:F]Y('!R;V=R86UM:6YG(&EN
M($0A( H*(R,C"B, 5$]$3PHC("H 26UP;&5M96YT("<M+7)E;6]V92< 9F5A
M='5R92P =VAI8V  =VEL;"!C;VUP;&5T96QY('5N:6YS=&%L;"!$340N"B, 
M*B!!9&0 ;W!T:6]N("TM<G!M('=H:6-H('=I;&P =')I9V=E<B!24$TM8G5I
M;&1I;F< :6YS=&5A9"!O9 HC("` ;6%N=6%L(&-O<'EI;F< ;V8 9FEL97,N
!" ``
`
end
Dec 29 2006