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

Ticket #620 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 year ago

Exit code for build script

Reported by: keinfarbton Assigned to: sean
Priority: normal Milestone: 0.99.2 RC5
Component: Tango Version: 0.99.1 RC4 Keep
Keywords: Cc:

Description

I have a setup that build that libphobos.a automatically. But the tango build script does not return a value unequal zero if the build fails. And if there is a build error, it is hidden somewhere in the middle of hundred printouts.

The following example for lib/build-dmd.sh would help to exit the script as soon as possible and return with error.

OLDHOME=$HOME
export HOME=`pwd`

goerror(){
    export HOME=$OLDHOME
    echo "="
    echo "= *** Error ***"
    echo "="
    exit 1
}

make clean -fdmd-posix.mak           || goerror
make lib doc install -fdmd-posix.mak || goerror
make clean -fdmd-posix.mak           || goerror
chmod 644 ../tango/core/*.di         || goerror

export HOME=$OLDHOME

Change History

09/09/07 15:02:59 changed by keinfarbton

  • status changed from new to closed.
  • resolution set to fixed.