summaryrefslogblamecommitdiff
path: root/ant-build-nsc.sh
blob: f95e8a14935f965a97eba0954bcefada0b10f73e (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                              
 
               
 
                                                                              
                                   
 








                                                                              
                                                                      
 







                                                                              
 
                              
                          


                                                                           
     
                                     
  
 
                                                      
                    

                                                                              
#!/bin/bash
########################################################-*-Shell-script-*-####
# Build nsc
##############################################################################
# $Id$

. ant-common.sh

##############################################################################
# jars for `scalac' task MUST EXIST

if ! addJar $fjbg_jar fjbg_jar; then exit -1; fi
if ! addJar $scala_jar scala_jar; then
  $ECHO "try: make jar target=LIBRARY" && exit -1;
fi
if ! addJar $tools_jar tools_jar; then
  $ECHO "try: make jar target=TOOLS" && exit -1;
fi

##############################################################################
# jars for `pico' task MUST EXIST including the `-scala-hacks' enabled

if ! addJar $jaco_jar jaco_jar; then exit -1; fi 

##############################################################################
# ant build

ANT_CONFIGFILE=build-nsc.xml
ANT_BUILDFILE=concrete-$ANT_CONFIGFILE
ANT_EXCLFILE=developer/${USER}/build-nsc-excludes.xml

# for debugging your classpath
#echo CLASSPATH=$CLASSPATH
if [ -f "$ANT_EXCLFILE" ]; then
  $SED -e "s#userExcludes\ \"\"#userExcludes\ SYSTEM\ \"$ANT_EXCLFILE\"#" \
    < $ANT_CONFIGFILE > $ANT_BUILDFILE;
 else
  $CP $ANT_CONFIGFILE $ANT_BUILDFILE;
fi

CLASSPATH="$CLASSPATH" $ANT_CMD -f "$ANT_BUILDFILE" $*
$RM "$ANT_BUILDFILE"

##############################################################################