fastgen.sh revision b3aeccd394a91bef671438fa47b9ccd7cd6145a5
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#! /bin/sh
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# ====================================================================
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# The Apache Software License, Version 1.1
2915eb26d1a16c56cdd91fed07566557d42645bdfielding#
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# Copyright (c) 2000 The Apache Software Foundation. All rights
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# reserved.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Redistribution and use in source and binary forms, with or without
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# modification, are permitted provided that the following conditions
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# are met:
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# 1. Redistributions of source code must retain the above copyright
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# notice, this list of conditions and the following disclaimer.
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# 2. Redistributions in binary form must reproduce the above copyright
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# notice, this list of conditions and the following disclaimer in
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# the documentation and/or other materials provided with the
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# distribution.
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# 3. The end-user documentation included with the redistribution,
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# if any, must include the following acknowledgment:
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# "This product includes software developed by the
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# Apache Software Foundation (http://www.apache.org/)."
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# Alternately, this acknowledgment may appear in the software itself,
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# if and wherever such third-party acknowledgments normally appear.
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# 4. The names "Apache" and "Apache Software Foundation" must
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# not be used to endorse or promote products derived from this
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# software without prior written permission. For written
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# permission, please contact apache@apache.org.
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# 5. Products derived from this software may not be called "Apache",
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# nor may "Apache" appear in their name, without prior written
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# permission of the Apache Software Foundation.
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# SUCH DAMAGE.
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# ====================================================================
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# This software consists of voluntary contributions made by many
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# individuals on behalf of the Apache Software Foundation. For more
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# information on the Apache Software Foundation, please see
2915eb26d1a16c56cdd91fed07566557d42645bdfielding# <http://www.apache.org/>.
64185f9824e42f21ca7b9ae6c004484215c031a7rbb#
64185f9824e42f21ca7b9ae6c004484215c031a7rbb# The build environment was provided by Sascha Schumann.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschasrcdir=$1
6ca0e6973c8176100f4a426444823ae5e777e28fsaschashift
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschamkdir_p=$1
6ca0e6973c8176100f4a426444823ae5e777e28fsaschashift
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschatop_srcdir=`(cd $srcdir; pwd)`
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschatop_builddir=`pwd`
b3aeccd394a91bef671438fa47b9ccd7cd6145a5sascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaif test "$mkdir_p" = "yes"; then
6ca0e6973c8176100f4a426444823ae5e777e28fsascha mkdir_p="mkdir -p"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaelse
2795c373a9fb112dc77576c1dfc23119f02d598amanoj mkdir_p="$top_srcdir/helpers/mkdir.sh"
6ca0e6973c8176100f4a426444823ae5e777e28fsaschafi
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschafor makefile in $@; do
b3aeccd394a91bef671438fa47b9ccd7cd6145a5sascha echo "creating $makefile"
b3aeccd394a91bef671438fa47b9ccd7cd6145a5sascha# portable dirname
b3aeccd394a91bef671438fa47b9ccd7cd6145a5sascha dir=`echo $makefile|sed 's%[^/][^/]*$%%'`
b3aeccd394a91bef671438fa47b9ccd7cd6145a5sascha
b3aeccd394a91bef671438fa47b9ccd7cd6145a5sascha (cat <<EOF
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschatop_srcdir = $top_srcdir
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschatop_builddir = $top_builddir
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschasrcdir = $top_srcdir/$dir
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschabuilddir = $top_builddir/$dir
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschaVPATH = $top_srcdir/$dir
b3aeccd394a91bef671438fa47b9ccd7cd6145a5saschaEOF
b3aeccd394a91bef671438fa47b9ccd7cd6145a5sascha)| cat - $makefile.in > $makefile
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschadone