File: build

package info (click to toggle)
libcgns 2.5.4-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 2,740 kB
  • ctags: 4,493
  • sloc: ansic: 46,717; fortran: 1,341; sh: 368; makefile: 259
file content (36 lines) | stat: -rwxr-xr-x 639 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
#!/bin/sh
#
# this script builds the CGNS library

do64bit=""
while [ $# -gt 0 ]; do
  case "$1" in
    -*enable-64* | -*64* | 64*) do64bit=-64bit ;;
    *) echo "unknown argument $1" && exit 1 ;;
  esac
  shift
done

if test ! -f cgsystem; then
  echo "cgsystem script does not exist" && exit 1
fi
if test ! -x cgsystem; then
  chmod +x cgsystem
fi

SYSTEM=`./cgsystem $do64bit`

if test ! -f make.$SYSTEM; then
  if test ! -f configure; then
    echo "configure script does not exist" && exit 1
  fi
  if test ! -x configure; then
    chmod +x configure
  fi
  ./configure --with-system=$SYSTEM
  echo ""
fi

make SYSTEM=$SYSTEM
exit 0