File: gen

package info (click to toggle)
ayttm 0.6.3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 8,368 kB
  • ctags: 8,851
  • sloc: ansic: 65,755; sh: 10,810; cpp: 3,092; makefile: 561; yacc: 294; lex: 53; sed: 16
file content (60 lines) | stat: -rwxr-xr-x 1,594 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/sh

# version 0.10.35 of gettext required a different kind of Makefile
# in intl/  it won't build with our distributed intl/ and must be
# overwritten
check_gettext()
{
	VERSION=`gettext --version | head -1 | cut -d' ' -f4` 
	MAJOR=`echo $VERSION | cut -d'.' -f1` 
	MINOR=`echo $VERSION | cut -d'.' -f2` 
	MICRO=`echo $VERSION | cut -d'.' -f3` 
 
	if test $MAJOR -gt 0; then
		return
	elif test $MAJOR -eq 0; then
	   if test $MINOR -gt 10; then
		return
	   elif test $MINOR -eq 10 -a $MICRO -gt 35; then
		return
	   fi
	fi

	# now we know they have an old version.  check if it's already
	# been gettextized

	C_VERSION=`sed s/.*gettext-// intl/VERSION`

	if test "$VERSION" = "$C_VERSION"; then
		# already run gettextize
		return
	fi

	#gettextize --force --copy
	
	# running gettextize is too harsh and destructive.  give the user
	# the option

	echo "************************************************************"
	echo "Your version of gettext ($VERSION) is older than 0.10.38 and"
	echo "is not compatible with the version that we distribute.  You"
	echo "should either upgrade to version 0.10.38 (0.10.39 preferred)"
	echo "or run gettextize --force --copy before proceeding."
	echo ""
	echo "$0 will not continue until you have fixed this."
	echo "************************************************************"

	exit 1
}

libtoolize --copy --force --ltdl --automake
if test $? != 0; then
	echo "Libtool not found. You will need libtool and libltdl3 packages to continue."
	return 1
fi

check_gettext
aclocal $ACLOCAL_FLAGS -I m4 -I libltdl 
autoheader
autoconf
automake -a -c