summaryrefslogtreecommitdiff
path: root/gdm-build.sh
blob: 5d4b3c70daa5787c2aa9254b08346d6bd15f25c0 (plain)
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
61
#!/bin/sh
# Simple script I use to rebuild gdm on my system.  Should work on redhat
# and redhat like systems
if [ x$UPDATE = xyes ] ; then
	if [ x$CLEAN = xyes ] ; then
		echo make distclean
		if ! make distclean ; then
			echo 
			echo '*********' make distclean failed '*********'
			echo 
			exit 1
		fi
		CLEAN=no
	fi
	echo cvs -z3 update -dP
	if ! cvs -z3 update -dP ; then
		echo 
		echo '*********' cvs update failed '*********'
		echo 
		exit 1
	fi
fi
	
echo ./autogen.sh --prefix=/usr --sysconfdir=/etc/X11 --localstatedir=/var --enable-console-helper --with-pam-prefix=/etc "$@"
if ! ./autogen.sh --prefix=/usr --sysconfdir=/etc/X11 --localstatedir=/var --enable-console-helper --with-pam-prefix=/etc "$@" ; then
	echo 
	echo '*********' autogen.sh failed '*********'
	echo 
	exit 1
fi

if [ x$CLEAN = xyes ] ; then
	echo make clean
	if ! make clean ; then
		echo 
		echo '*********' make clean failed '*********'
		echo 
		exit 1
	fi
fi

if [ x$NO_MAKE = xyes ] ; then
	echo 
	echo '*********' make skipped '*********'
	echo 
	exit 0
fi

echo make
if ! make ; then
	echo 
	echo '*********' make failed '*********'
	echo 
	exit 1
fi

echo 
echo '******************************************************'
echo 'Build of gdm finished, now type "make install" as root'
echo '******************************************************'
echo