Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 2216

Show
Ignore:
Timestamp:
05/15/07 04:53:26 (2 years ago)
Author:
larsivi
Message:

Try to update existing dmd.conf

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/install/dmd-posix/installer.sh

    r2114 r2216  
     1#!/bin/bash  
     2# Copyright (C) 2007  Gregor Richards 
     3# Permission is granted to do anything you please with this software. 
     4# This software is provided with no warranty, express or implied, within the 
     5# bounds of applicable law. 
     6# 
     7# Modifications by Alexander Panek, Lars Ivar Igesund 
     8 
    19die() { 
    210    rm -rf /tmp/tango.installer.$$ 
     
    3745    cd $DMDDIR || die 1 "Failed to cd to the DMD install directory" 
    3846    tail -n+$LINES $FULLNAME | tar Oxf - dmd.tar.gz | gunzip -c | tar xf - || die 1 "Failed to extract DMD" 
     47 
     48    if [ ! -e "bin/dmd.conf" ] 
     49    then 
     50        die 1 "Error in install, no dmd.conf found" 
     51    else 
     52        if [ ! "`grep -L-ltango bin/dmd.conf`" ] 
     53        then 
     54            sed -i.bak -e 's/^DFLAGS=.*$/& -L-ltango/' bin/dmd.conf 
     55        fi 
     56    fi 
    3957 
    4058fi