File: build.sh

package info (click to toggle)
eclipse 3.5.2-6squeeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 297,208 kB
  • ctags: 426,326
  • sloc: java: 2,527,099; ansic: 122,607; xml: 100,868; cpp: 33,545; jsp: 3,869; sh: 2,557; perl: 1,650; makefile: 272; csh: 151; python: 69; php: 24
file content (44 lines) | stat: -rwxr-xr-x 729 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
43
44
#!/bin/sh

if `uname -m > /dev/null 2>&1`; then
	arch=`uname -m`
else
	arch=`uname -p`
fi

# Massage arch for Eclipse-uname differences
case ${arch} in
	arm*)
		arch=arm ;;
	i[0-9]*86)
		arch=x86 ;;
	ia64)
		arch=ia64 ;;
	mips*)
		if which dpkg-architecture >/dev/null 2>&1; then
			arch=`dpkg-architecture -qDEB_HOST_ARCH`
		fi ;;
	parisc*)
		arch=PA_RISC ;;
	ppc)
		arch=ppc ;;
	ppc64)
		arch=ppc64 ;;
	x86_64)
		arch=x86_64 ;;
	sparc)
		arch=sparc ;;
	sparcv9)
		arch=sparc ;;
	sparc64)
		arch=sparc64 ;;
	*)
		echo "Unrecognized architecture:  $arch" 1>&2
		exit 1 ;;
esac
DATE=`date +%Y%m%d%H%M%S`

ant -DbuildArch=${arch} 2>&1 | tee build_${DATE}.log
EXIT_CODE=$?
echo "Build log is available in build_${DATE}.log"
exit $?