PageRenderTime 58ms CodeModel.GetById 52ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-15/SWIG/Runtime/make.sh

#
Shell | 42 lines | 28 code | 6 blank | 8 comment | 5 complexity | b0f22a71b8717f60eaf5102676dfad73 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1#!/bin/sh
 2#
 3# Build run-time libraries for SWIG.  This script will attempt to build libraries
 4# for all of SWIG's target languages, but may report failures for uninstalled 
 5# packages.
 6#     
 7
 8necho() {
 9   if [ "`echo -n`" = "-n" ]; then
10      echo "${@}\c"
11   else
12      echo -n "${@}"
13   fi
14}
15
16# Script that attempts to produce different run-time libraries
17
18TARGET='perl5 python tcl ruby'
19
20echo "Building the SWIG runtime libraries."
21echo ""
22echo "The runtime libraries are only needed if you are building"
23echo "multiple extension modules that need to share information."
24echo ""
25echo "*** Note ***"
26echo "Some of these builds may fail due to uninstalled packages."
27echo "If a build fails and you want to know what is wrong, do"
28echo "a manual build by going into the Runtime directory and"
29echo "typing 'make target' where target is the name of the target"
30echo "that is failing."
31echo ""
32
33for i in ${TARGET}; do 
34necho "    Building ${i}"; 
35if make ${i} >/dev/null 2>&1; then 
36# See if SWIG generated any errors at all
37	echo " ....... OK.";
38else 
39    echo " ....... failed.";
40fi;
41done
42