1#!/bin/sh 2# BEGIN LICENSE BLOCK 3# Version: CMPL 1.1 4# 5# The contents of this file are subject to the Cisco-style Mozilla Public 6# License Version 1.1 (the "License"); you may not use this file except 7# in compliance with the License. You may obtain a copy of the License 8# at www.eclipse-clp.org/license. 9# 10# Software distributed under the License is distributed on an "AS IS" 11# basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See 12# the License for the specific language governing rights and limitations 13# under the License. 14# 15# The Original Code is The ECLiPSe Constraint Logic Programming System. 16# The Initial Developer of the Original Code is Cisco Systems, Inc. 17# Portions created by the Initial Developer are 18# Copyright (C) 2006 Cisco Systems, Inc. All Rights Reserved. 19# 20# Contributor(s): ___________________________________. 21# 22# END LICENSE BLOCK 23 24PDS_DIR="`pwd`" 25export PDS_DIR 26 27if test ! -z "$PROJECTDIR"; then 28 unset PROJECTDIR; export PROJECTDIR 29fi 30 31if test -z "$ECLIPSEARCH"; then 32 echo Please set environment variable ECLIPSEARCH and try again 33 exit -1 34fi 35 36if test -z "$SYS_DIR"; then 37 SYS_DIR="`pwd`/.." 38fi 39 40if test -d "$ECLIPSEARCH"; then 41 /bin/rm -r $ECLIPSEARCH 42fi 43mkdir $ECLIPSEARCH 44( cd $ECLIPSEARCH; ln -s ../src/*.[ch] ../src/*.in ../src/configure . ) 45 46if test ! -d "lib"; then mkdir lib; fi 47if test ! -d "lib/$ECLIPSEARCH"; then mkdir lib/$ECLIPSEARCH; fi 48if test ! -d "bin"; then mkdir bin; fi 49if test ! -d "bin/$ECLIPSEARCH"; then mkdir bin/$ECLIPSEARCH; fi 50if test ! -d "include"; then mkdir include; fi 51 52if test ! -d "$SYS_DIR/sys_lib"; then mkdir $SYS_DIR/lib; fi 53if test ! -d "$SYS_DIR/sys_lib/$ECLIPSEARCH"; then mkdir $SYS_DIR/lib/$ECLIPSEARCH; fi 54if test ! -d "$SYS_DIR/sys_bin"; then mkdir $SYS_DIR/bin; fi 55if test ! -d "$SYS_DIR/sys_bin/$ECLIPSEARCH"; then mkdir $SYS_DIR/bin/$ECLIPSEARCH; fi 56if test ! -d "$SYS_DIR/sys_include"; then mkdir $SYS_DIR/include; fi 57 58if test "$ECLIPSEARCH" = sun3; then 59 MAKE=/bin/make 60else 61 if test "$ECLIPSEARCH" = sparc_svr4; then 62 # for the drs 6000 use gnu make 63 MAKE=/user2/sepia/bin/make 64 else 65 if test "$ECLIPSEARCH" = rs6000; then 66 MAKE=/usr/local/gnu/bin/make 67 else 68 MAKE=make 69 fi 70 fi 71fi 72 73$MAKE 74 75# Exit code is that of the call to $MAKE. 76 77