[go: up one dir, main page]

File: make.sh

package info (click to toggle)
swig1.3 1.3.11-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,852 kB
  • ctags: 4,764
  • sloc: ansic: 20,489; cpp: 10,052; sh: 7,256; yacc: 2,669; makefile: 2,381; python: 873; java: 762; tcl: 686; perl: 474; lisp: 444; ruby: 370; php: 367
file content (42 lines) | stat: -rw-r--r-- 1,091 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/sh
#
# Build run-time libraries for SWIG.  This script will attempt to build libraries
# for all of SWIG's target languages, but may report failures for uninstalled 
# packages.
#     

necho() {
   if [ "`echo -n`" = "-n" ]; then
      echo "${@}\c"
   else
      echo -n "${@}"
   fi
}

# Script that attempts to produce different run-time libraries

TARGET='perl5 python tcl ruby'

echo "Building the SWIG runtime libraries."
echo ""
echo "The runtime libraries are only needed if you are building"
echo "multiple extension modules that need to share information."
echo ""
echo "*** Note ***"
echo "Some of these builds may fail due to uninstalled packages."
echo "If a build fails and you want to know what is wrong, do"
echo "a manual build by going into the Runtime directory and"
echo "typing 'make target' where target is the name of the target"
echo "that is failing."
echo ""

for i in ${TARGET}; do 
necho "    Building ${i}"; 
if make ${i} >/dev/null 2>&1; then 
# See if SWIG generated any errors at all
	echo " ....... OK.";
else 
    echo " ....... failed.";
fi;
done