~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to build/fastgen.sh

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
#
 
3
# Licensed to the Apache Software Foundation (ASF) under one or more
 
4
# contributor license agreements.  See the NOTICE file distributed with
 
5
# this work for additional information regarding copyright ownership.
 
6
# The ASF licenses this file to You under the Apache License, Version 2.0
 
7
# (the "License"); you may not use this file except in compliance with
 
8
# the License.  You may obtain a copy of the License at
 
9
#
 
10
#     http://www.apache.org/licenses/LICENSE-2.0
 
11
#
 
12
# Unless required by applicable law or agreed to in writing, software
 
13
# distributed under the License is distributed on an "AS IS" BASIS,
 
14
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
15
# See the License for the specific language governing permissions and
 
16
# limitations under the License.
 
17
#
 
18
#
 
19
# The build environment was provided by Sascha Schumann.
 
20
 
 
21
srcdir=$1
 
22
shift
 
23
 
 
24
mkdir_p=$1
 
25
shift
 
26
 
 
27
bsd_makefile=$1
 
28
shift
 
29
 
 
30
top_srcdir=`(cd $srcdir; pwd)`
 
31
top_builddir=`pwd`
 
32
 
 
33
if test "$mkdir_p" = "yes"; then
 
34
  mkdir_p="mkdir -p"
 
35
else
 
36
  mkdir_p="$top_srcdir/build/mkdir.sh"
 
37
fi
 
38
 
 
39
if test "$bsd_makefile" = "yes"; then
 
40
  (cd $top_srcdir; ./build/bsd_makefile)  
 
41
 
 
42
  for makefile in $@; do
 
43
    echo "creating $makefile"
 
44
    dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'`
 
45
 
 
46
    if test -z "$dir"; then
 
47
        real_srcdir=$top_srcdir
 
48
        real_builddir=$top_builddir
 
49
        dir="."
 
50
    else
 
51
        $mkdir_p "$dir/"
 
52
        real_srcdir=$top_srcdir/$dir
 
53
        real_builddir=$top_builddir/$dir
 
54
    fi
 
55
    cat - $top_srcdir/$makefile.in <<EOF |sed 's/^include \(.*\)/.include "\1"/' >$makefile 
 
56
top_srcdir   = $top_srcdir
 
57
top_builddir = $top_builddir
 
58
srcdir       = $real_srcdir
 
59
builddir     = $real_builddir
 
60
VPATH        = $real_srcdir
 
61
EOF
 
62
    
 
63
    touch $dir/.deps
 
64
  done
 
65
else  
 
66
  for makefile in $@; do
 
67
    echo "creating $makefile"
 
68
    dir=`echo $makefile|sed 's%/*[^/][^/]*$%%'`
 
69
 
 
70
    if test -z "$dir"; then
 
71
        real_srcdir=$top_srcdir
 
72
        real_builddir=$top_builddir
 
73
        dir="."
 
74
    else
 
75
        $mkdir_p "$dir/"
 
76
        real_srcdir=$top_srcdir/$dir
 
77
        real_builddir=$top_builddir/$dir
 
78
    fi
 
79
    cat - $top_srcdir/$makefile.in <<EOF >$makefile
 
80
top_srcdir   = $top_srcdir
 
81
top_builddir = $top_builddir
 
82
srcdir       = $real_srcdir
 
83
builddir     = $real_builddir
 
84
VPATH        = $real_srcdir
 
85
EOF
 
86
 
 
87
    touch $dir/.deps
 
88
  done
 
89
fi