~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/config/util/xmkmf.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XCOMM!/bin/sh
 
2
 
 
3
XCOMM $XFree86: xc/config/util/xmkmf.cpp,v 1.4 2001/01/17 16:39:02 dawes Exp $
 
4
XCOMM
 
5
XCOMM make a Makefile from an Imakefile from inside or outside the sources
 
6
XCOMM 
 
7
XCOMM $Xorg: xmkmf.cpp,v 1.3 2000/08/17 19:41:53 cpqbld Exp $
 
8
 
 
9
usage="usage:  $0 [-a] [top_of_sources_pathname [current_directory]]"
 
10
 
 
11
configdirspec=CONFIGDIRSPEC
 
12
topdir=
 
13
curdir=.
 
14
do_all=
 
15
imake_defines=
 
16
 
 
17
while [ $# -gt 0 ]
 
18
do
 
19
    case "$1" in
 
20
    -D*)
 
21
        imake_defines="$imake_defines $1"
 
22
        shift
 
23
        ;;
 
24
    -a)
 
25
        do_all="yes"
 
26
        shift
 
27
        ;;
 
28
    *)
 
29
        break
 
30
        ;;
 
31
    esac
 
32
done
 
33
 
 
34
case $# in 
 
35
    0) ;;
 
36
    1) topdir=$1 ;;
 
37
    2) topdir=$1  curdir=$2 ;;
 
38
    *) echo "$usage" 1>&2; exit 1 ;;
 
39
esac
 
40
 
 
41
case "$topdir" in
 
42
    -*) echo "$usage" 1>&2; exit 1 ;;
 
43
esac
 
44
 
 
45
if [ -f Makefile ]; then 
 
46
    echo mv -f Makefile Makefile.bak
 
47
    mv -f Makefile Makefile.bak
 
48
fi
 
49
 
 
50
if [ "$topdir" = "" ]; then
 
51
    args="-DUseInstalled "$configdirspec
 
52
else
 
53
    args="-I$topdir/config/cf -DTOPDIR=$topdir -DCURDIR=$curdir"
 
54
fi
 
55
 
 
56
echo imake $imake_defines $args
 
57
case "$do_all" in
 
58
yes)
 
59
    imake $imake_defines $args && 
 
60
    echo "make Makefiles" &&
 
61
    make Makefiles &&
 
62
    echo "make includes" &&
 
63
    make includes &&
 
64
    echo "make depend" &&
 
65
    make depend
 
66
    ;;
 
67
*)
 
68
    imake $imake_defines $args
 
69
    ;;
 
70
esac